Finds critical CSS rules (i.e. CSS needed for the initial page load).
More...
#include "critical_css_finder.h"
|
static void | InitStats (Statistics *statistics) |
|
|
static const char | kCriticalCssValidCount [] |
|
static const char | kCriticalCssExpiredCount [] |
|
static const char | kCriticalCssNotFoundCount [] |
|
static const char | kCriticalCssPropertyName [] |
|
Finds critical CSS rules (i.e. CSS needed for the initial page load).
virtual CriticalCssResult* net_instaweb::CriticalCssFinder::GetCriticalCss |
( |
RewriteDriver * |
driver | ) |
|
|
virtual |
Gets the critical CSS rules from the driver if they are present. Otherwise calls UpdateCriticalCssInfoInDriver() to populate the ruleset in the driver and returns the rules. The ownership of the CriticalCssResult is not released and it stays with the driver.
virtual CriticalCssResult* net_instaweb::CriticalCssFinder::GetCriticalCssFromCache |
( |
RewriteDriver * |
driver | ) |
|
|
virtual |
virtual void net_instaweb::CriticalCssFinder::UpdateCriticalCssInfoInDriver |
( |
RewriteDriver * |
driver | ) |
|
|
virtual |
Collects the critical CSS rules from the property cache and updates the same in the rewrite driver. The ownership of the ruleset stays with the driver.
The documentation for this class was generated from the following file: