High performance CSS (four)

Remove the non matching patterns

Remove the non matching style, there are two advantages:

First, remove the useless style can reduce the style file size, to speed up resource download speed,

Second, for the browser, all the style rules will be parsed index, even if is the current page without matching rules. Remove the non matching rules, reduce the index entries, to speed up the search speed of the browser,

Posted by Edith at December 11, 2013 - 5:10 AM