[jQuery] New plugin: elementReady

[jQuery] New plugin: elementReady


I have written a simple but useful jQuery plugin.
jQuery.elementReady() calls a function during page load as soon as a
specific element is available -- even before the full DOM is loaded.
It's useful if you have unobtrusive JavaScript that you want to apply
to particular page elements immediately, without having to wait for
the whole DOM to load in a large page.
Using the elementReady plugin is very similar to the existing
jQuery.ready() function, except that you must also pass in a string
representing the ID of the element that should have the function call
attached.
The plugin, documentation and more are available at
http://www.thunderguy.com/semicolon/2007/08/14/elementready-jquery-plugin/
This is an early version of the plugin. While it works well for me in
testing (and on this page), it has not been reviewed or exhaustively
tested. I would appreciate your comments on the idea and the
implementation.