How to make your websites download and run fast [part two]
December 14, 2011 § Leave a comment
This is part two of how to make your website run fast, part one can be found here. In this post I will focus on rules related to CSS in your site. I recommend using Page Speed to help optimize the performance of web pages.
Include External CSS files first
Avoid CSS @import
This is going to prevent parallel downloading of the CSS files, therefore increasing loading time, more can be found here.
Put CSS in the document head
Again, because CSS styles are used during the layout rendering, it’s better to load them as soon as possible. The browser usually block page rendering until all external CSS files have been downloaded. read more here.