Page Speed Optimization Libraries
1.4.26.1
|
#include "critical_images_beacon_filter.h"
Public Member Functions | |
CriticalImagesBeaconFilter (RewriteDriver *driver) | |
virtual void | DetermineEnabled () |
virtual void | StartDocument () |
virtual void | EndElement (HtmlElement *element) |
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 Public Attributes | |
static const char | kCriticalImagesBeaconAddedCount [] |
Counters. |
Inject javascript for detecting above the fold images after the page has loaded. Also adds pagespeed_url_hash attributes that the beacon sends back to the server. This allows the beacon to work despite image URL rewriting or inlining.
virtual void net_instaweb::CriticalImagesBeaconFilter::DetermineEnabled | ( | ) | [virtual] |
Invoked by rewrite driver where all filters should determine whether they are enabled for this request.
Reimplemented from net_instaweb::EmptyHtmlFilter.
virtual void net_instaweb::CriticalImagesBeaconFilter::StartDocument | ( | ) | [virtual] |
Starts a new document. Filters should clear their state in this function, as the same Filter instance may be used for multiple HTML documents.
Reimplemented from net_instaweb::EmptyHtmlFilter.