Combining javascripts into a single file

Posted by toomanyairmiles on Stack Overflow See other posts from Stack Overflow or by toomanyairmiles
Published on 2010-05-09T22:25:03Z Indexed on 2010/05/09 22:28 UTC
Read the original article Hit count: 294

Filed under:
|
|

Having read up recently on yahoo's web optimisation tips and using YSlow I've implemented a few of their ideas on one of my sites http://www.gwynfryncottages.com you can see the file here http://www.gwynfryncottages.com/js/gw-custom.js.

While this technique seems to work perfectly on most occasions, and really does speed up the site, I do notice a significantly higher number of errors where the javascripts don't load or don't load completely while I'm working on the site so three questions:-

  • is combining scripts this way a good idea at all in terms of reliablity?

  • is there any way to measure the number of errors?

  • is there any way to 'pre-load' the javascript or ensure that the number of loading errors is reduced?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery