Page Speed Optimization Libraries  1.9.32.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces
critical_css_filter.h File Reference
#include <map>
#include <vector>
#include "net/instaweb/rewriter/critical_css.pb.h"
#include "net/instaweb/rewriter/public/css_tag_scanner.h"
#include "net/instaweb/rewriter/public/common_filter.h"
#include "net/instaweb/util/public/basictypes.h"
#include "net/instaweb/util/public/string.h"

Go to the source code of this file.

Classes

class  net_instaweb::CriticalCssFilter
 

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Detailed Description

Replace link tags with the inline CSS that is resolved on initial load. Move the link tags to the bottom (usually CSS is placed in HEAD). Also, copy existing inline style blocks to the bottom to maintain the original rule order.

Todo:
TODO(slamm): Consider prioritizing the rules in inline style blocks too.

This lessons the extern resources in the HEAD and allows the page to load sooner.