Wednesday, September 21, 2005
Most people attach their initialization behavior to an onload event, waiting for the page to finish loading before manipulating the DOM. One problem with this, though, is that onload doesn't fire until everything on the page is finished loading, including all images. It can take several seconds, or more, for every image to load, especially on Internet Explorer since there is a two connection per host limit.
The folks at brothercake have posted a nifty onDomLoad script that solves this problem:
domFunctionis an easy-to-use helper script, that allows other DOM scripting to run before
Check it out.
Finished O'Reilly Network Article
The article is titled "AJAX: How to Handle Bookmarks and Back Buttons." Here's a sneak peak on the intro; you'll have to wait until O'Reilly publishes the article to see the full thing ;)
"AJAX: How to Handle Bookmarks and Back Buttons" discusses the significant issues that AJAX applications currently face with bookmarks and the back button; delivers an open source library created exclusively for this article that solves these problems; and presents serveral working examples.
Alex Russell, Ray Baxter, Chris Messina, and David Weekly.
Subscribe to Posts [Atom]