"Fossies" - the Fresh Open Source Software Archive

Member "incubator-pagespeed-mod-1.14.36.1/html/doc/filter-strip-scripts.html" (28 Feb 2020, 1917 Bytes) of package /linux/www/apache_httpd_modules/incubator-pagespeed-mod-1.14.36.1.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the incubator-pagespeed-mod-1.14.36.1.tar.gz project site itself.

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.