Page Speed Optimization Libraries  1.2.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
net_instaweb::JsDeferDisabledFilter Class Reference

#include "js_defer_disabled_filter.h"

Inheritance diagram for net_instaweb::JsDeferDisabledFilter:
net_instaweb::EmptyHtmlFilter net_instaweb::HtmlFilter

List of all members.

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)

Detailed Description

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.


Member Function Documentation

Invoked by rewrite driver where all filters should determine whether they are enabled for this request.

Reimplemented from net_instaweb::EmptyHtmlFilter.

JsDeferDisableFilter will be no op for the request if ShouldApply returns false.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines