This rewriter implements the PageSpeed rule for minimizing payload size.
<script> tags and are proxied via Google (using
Actions taken by this rewriter include: stripping of comments and most
whitespaces and rewriting of the content using the compiler.
While it is great to put comments, tabs and whitespace in code to improve
readability and maintenance, these are bytes that take up space on the wire,
bytes are removed by this rewriter.
By default this rewriter is disabled, but you can enable it from the Rewriter Settings pane of the Google APIs Console.
and after rewriting:
Since all comment blocks are removed by this rewriter, you will need to use @preserve or @license to retain comment blocks containing legal licenses or copyright text, as shown below.
/** * @preserve Copyright 2011 SomeThirdParty. * Here is the full license text and copyright * notice for this file. Note that the notice can span several * lines and is only terminated by the closing star and slash: */
src attribute is already modified by the Proxy
rewriter are also applicable to this rewriter.