Tag Archives: javascript

Using the YUI Loader and Yahoo’s CDN Rollup

Using the YUI Loader and the script below will allow you to implement the YUI framework within your application with out downloading and installing the YUI framework to your server. var loader = new YAHOO.util.YUILoader({ require: ["get","dom","event"], loadOptional: true, onSuccess: function() { YAHOO.util.Event.onDOMReady(init); }, timeout: 10000, combine: true }); loader.insert(); function init(){ console.warn(‘YUI Loaded’); } [...]