Wow, it's been awhile since I blogged!  I've been attending a lot of events and learning as much as I can. Like Windows Azure, jQuery, MVC and more.  As far as JavaScript script files, I followed what Douglas Crockford (Yahoo) suggested and minimized my JavaScript script files and served them from my server.  That included libraries like jQuery and YUI.  Well, that's a bad idea.
Becasuse of caching, both on the server and in the browser, there's a faster way.  Common Javascript script files such as the libraries for jQuery, YUI and Microsoft's AJAX provide better end performance when the source URL is used.  URLs like "http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.js" are cached by both the server and the browser.  Now, If I followed my old way, my files probably would not benefit from the caching, so my pages would load much slower.  That makes sense, right?
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment