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.