Page Speed Optimization Libraries
1.2.24.1
|
#include "js_defer_disabled_filter.h"
Public Member Functions | |
JsDeferDisabledFilter (RewriteDriver *driver) | |
virtual void | EndDocument () |
Note: EndDocument will be called imediately before the last Flush call. | |
virtual void | DetermineEnabled () |
virtual const char * | Name () const |
The name of this filter -- used for logging and debugging. | |
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.
virtual void net_instaweb::JsDeferDisabledFilter::DetermineEnabled | ( | ) | [virtual] |
Invoked by rewrite driver where all filters should determine whether they are enabled for this request.
Reimplemented from net_instaweb::EmptyHtmlFilter.
static bool net_instaweb::JsDeferDisabledFilter::ShouldApply | ( | RewriteDriver * | driver | ) | [static] |
JsDeferDisableFilter will be no op for the request if ShouldApply returns false.