Thursday, April 12th, 2007
YUI 2.2.1: onDOMReady and more
The latest YUI release is out there, 2.2.1.
Although it is primarily a bug fix release, there are some important additions.
onDOMReady
We’re happy to announce the inclusion of the
onDOMReadyevent in the Event utility! Now YUI developers can execute their JavaScript when the DOM loads, and before everything else loads too. This utility also provides theonAvailableevent, which fires when a specified DOM node loads, and theonContentReadyevent, which fires when a specified DOM node, plus all of its children, loads.
The browser support has also changed a little, with support for Firefox 2.x and IE 7 on Vista.












I thought they already had a onDomReady? I am wrong?
Ext has had onDomReady but not YUI. YUI Just had the onAvailable and onContentReady events.
is anyone planning on standardizing this at the DOM API level, now that every library has their own version?
http://openajax.org is targeting to standardize core Javascript functionalities when different Libraries are used within one site.
Isn’t jQuery’s document.ready() the same thing?
And jQuery has had that one for a while.
Also Nifty Corners had a ondomready (well something similar) function.