| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <html> |
| <head> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <title>Strip Scripts</title> |
| <link rel="stylesheet" href="doc.css"> |
| </head> |
| <body> |
| <!--#include virtual="_header.html" --> |
| |
| |
| <div id=content> |
| <h1>Strip Scripts</h1> <h2>Configuration</h2> |
| <p> |
| The 'Strip Scripts' filter is enabled by specifying: |
| <dl> |
| <dt>Apache:<dd><pre class="prettyprint" |
| >ModPagespeedEnableFilters strip_scripts</pre> |
| <dt>Nginx:<dd><pre class="prettyprint" |
| >pagespeed EnableFilters strip_scripts;</pre> |
| </dl> |
| <p> |
| in the configuration file. |
| </p> |
| <h2>Description</h2> |
| <p> |
| The <code>strip_scripts</code> 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. |
| </p> |
| <h2>Risks</h2> |
| <p> |
| All functionality and visual effects that are dependent on JavaScript |
| will not work. |
| </p> |
| </div> |
| <!--#include virtual="_footer.html" --> |
| </body> |
| </html> |