Page Speed Optimization Libraries
1.8.31.3
|
Inject JavaScript for detecting the below-the-fold HTML panels. More...
#include "split_html_beacon_filter.h"
Public Member Functions | |
SplitHtmlBeaconFilter (RewriteDriver *driver) | |
virtual void | DetermineEnabled () |
virtual void | StartDocumentImpl () |
virtual void | EndDocument () |
virtual void | StartElementImpl (HtmlElement *element) |
virtual void | EndElementImpl (HtmlElement *element) |
virtual const char * | Name () const |
Static Public Member Functions | |
static void | InitStats (Statistics *statistics) |
static bool | ShouldApply (RewriteDriver *driver) |
Static Public Attributes | |
static const char | kSplitHtmlBeaconAddedCount [] |
Counters. |
Inject JavaScript for detecting the below-the-fold HTML panels.
static bool net_instaweb::SplitHtmlBeaconFilter::ShouldApply | ( | RewriteDriver * | driver | ) | [static] |
Returns true if this filter is going to inject a beacon for this request. Filters that need to be disabled when beaconing runs (such as SplitHtml) should set_is_enabled(false) in their DetermineEnabled calls if this returns true. This should be called before the filter runs, since running the filter can change the result due to pcache updates.
virtual void net_instaweb::SplitHtmlBeaconFilter::StartDocumentImpl | ( | ) | [inline, virtual] |
Overload these implementer methods: Intentionally left abstract so that implementers don't forget to change the name from Blah to BlahImpl.
Implements net_instaweb::CommonFilter.