Page Speed Optimization Libraries
1.6.29.3
|
#include "deterministic_js_filter.h"
Public Member Functions | |
DeterministicJsFilter (RewriteDriver *driver) | |
virtual void | StartDocument () |
virtual void | StartElement (HtmlElement *element) |
virtual const char * | Name () const |
Injects javascript at the beginning of the head tag to make it deterministic. The JS redefines functions like Math.random and Date. This filter is useful for testing and measurement but does not provide any latency gains. A head element is added if it is not already present in the html.