Optimization
According to people at Yahoo! you must put CSS at the top and scripts at the bottom because scripts block concurrent downloads. But this is mainly a matter of optimization and is not critical for a truly working page. Joeri Sebrechts pointed out that the Cuzillion is a great way to test this out and see speed improvement for yourself.
Several styles
If you link multiple style sheets, the order associated with them can affect how your pages are styled depending on the specificity of your selectors . In other words, if you have two stylesheets that define the same selector in two different ways, the latter will take precedence. For example:
Style Sheet 1:
h1 { color: #f00; }
Style Sheet 2:
h1 { color: #00f; }
In this example, the h1 elements will have color #00f because it was defined last with the same specificity:
Some scripts
If you use multiple scripts, the order in which they are used may be important if one of the scripts depends on something in another script. In this case, if the scripts are connected in the wrong order, some of your scripts may cause errors or may not work properly. This, however, depends heavily on which scripts you use.
Joe Lencioni Oct 10 '08 at 11:28 2008-10-10 11:28
source share