openxpc.source code is poetry!

6Aug/080

optimize webapplications [part 2]

Another idea to optimize webapplications is putting the CSS on the top of a webpage and the JS at the end of the page. The trick is, that the browser doesn't stop rendering the page for loading a javascript file. If the page is rendered, the browser requests the javascript files and stores them in its cache. The performance isn't really touched, but it's a better user expierence to see a fast page with the including stylesheet.

So, put the stylesheets at the TOP and the javascripts at the BOTTOM.

Comments

Leave a comment