Page Speed Optimization Libraries  1.4.26.1
Classes | Namespaces
net/instaweb/rewriter/public/critical_css_filter.h File Reference
#include <map>
#include <vector>
#include "net/instaweb/htmlparse/public/empty_html_filter.h"
#include "net/instaweb/rewriter/public/css_tag_scanner.h"
#include "net/instaweb/util/public/basictypes.h"
#include "net/instaweb/util/public/scoped_ptr.h"
#include "net/instaweb/util/public/string.h"

Go to the source code of this file.

Classes

class  net_instaweb::CriticalCssFilter

Namespaces

namespace  net_instaweb
 

for StringPiece



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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines