Zum Inhalt

Mirrored documentation

This page is a faithful mirror of the original Apache mod_pagespeed documentation (Apache License 2.0). The upstream project was retired and the modpagespeed.com domain is now operated by an unrelated commercial vendor; we host the original reference so users of nginx-module-pagespeed from GetPageSpeed can rely on a stable copy.

Strip Scripts

Configuration

The 'Strip Scripts' filter is enabled by specifying:

Apache:

ModPagespeedEnableFilters strip_scripts

Nginx:

pagespeed EnableFilters strip_scripts;

in the configuration file.

Description

The strip_scripts filter completely removes scripts from a page. Obviously this will break functionality, and is disabled by default. This can be used to facilitate timing tests showing the maximum possible benefit of improving a site's JavaScript performance.

Risks

All functionality and visual effects that are dependent on JavaScript will not work.