Page Speed Optimization Libraries
1.8.31.3
|
#include "critical_images_beacon_filter.h"
Public Member Functions | |
CriticalImagesBeaconFilter (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 *rewrite_driver) |
Static Public Attributes | |
static const char * | kImageOnloadCode |
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.
static bool net_instaweb::CriticalImagesBeaconFilter::ShouldApply | ( | RewriteDriver * | rewrite_driver | ) | [static] |
Returns true if this filter is going to inject a beacon. Filters that need to disabled when beaconing run, like the rendered_image_dimensions filter, can check this function.
virtual void net_instaweb::CriticalImagesBeaconFilter::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.