Re:How I reduced Page Load Time by 75% - WordPress Optimization
by kadavy on Thursday April 22, 2010 @01:49AM
(#1284287)
Thanks for that explanation. Based on what you said, I think I'm approaching it okay. On a few posts that have really high bounce rates, I use the Custom Post Template to serve CSS and JS inline on those pages (amongst other customizations). The rest of the site, I load them from external files.
But if you have multiple pages sharing the same styles, yes for once off load times, having the CSS and JavaScript inpage is better, but for a visit of more than one page, having the CSS and JavaScript as separate cacheable resources is far better, since the differences are now the page size of the pure HTML plus images, saving at least the packet sizes needed to transfer the same CSS and JavaScript on each page.
So the major multi-page properties of Yahoo use primarily one external CSS and one external JavaScript file on each property.