Be the first to write a review
Intelligent YUI Resource Loading with YUI Loader
In my last article we looked at the YUI Get utility, something constructed for the sole purpose of dynamically adding additional script or CSS resources to a page after it has loaded. Following on from this we’re going to take a look at the YUI Loader, a very similar utility with a very similar purpose.
YUI Get will indiscriminately get the files you specify but the big difference with YUI loader is that it has been designed to specifically get YUI files. YUI Loader is an intelligent utility that saves you having to include or specify all of the necessary individual files and dependencies for any component; you simply tell it the component(s) you wish to use and it looks at what YUI content exists on the page, and then adds anything else need to make the component work.
Dan Wellman is an author and web developer based in the UK. Dan has written three books so far; the latest, jQuery UI 1.7: The User Interface Library for jQuery, was released at the end of 2009.
Dan has been writing web development tutorials for over 5 years and works by day for a local digital media agency in his home town of Southampton.
You must me logged in to write a review.