Page Speed Optimization Libraries
1.7.30.2
|
#include "js_defer_disabled_filter.h"
Public Member Functions | |
JsDeferDisabledFilter (RewriteDriver *driver) | |
virtual void | DetermineEnabled () |
virtual const char * | Name () const |
Static Public Member Functions | |
static void | InitStats (Statistics *statistics) |
static void | Terminate () |
static bool | ShouldApply (RewriteDriver *driver) |
Implements deferring of javascripts into post onload. JsDisableFilter moves scripts inside a noscript tag. This filter adds a javascript that goes through every noscript tag to defer them to be executed at onload of window.
static bool net_instaweb::JsDeferDisabledFilter::ShouldApply | ( | RewriteDriver * | driver | ) | [static] |
JsDeferDisableFilter will be no op for the request if ShouldApply returns false.