Fixed a bug caused by an unwanted Closure Compiler optimization that broke
CSS load completion detection in Gecko when using the minified version of
LazyLoad. [Allex Wang]
Fixed a race condition in which a URL could be removed from the "pending"
queue if it finished loading before other URLs in the same batch had been
added to the queue, resulting in the queue's length changing unexpectedly
during iteration. [Klaas Neirinck]
Stylesheet load completion is now detected reliably in WebKit by polling
document.styleSheets for changes. Thanks to Jonathan Cook for suggesting
Dynamically created script and link nodes are now given a "lazyload" class
so they can be identified later.
The charset for dynamically created script and link nodes is set to "utf-8".
August 6, 2009
Added support for CSS. Caveat: Gecko and WebKit don't support the onload
event for link nodes, so the CSS callback will fire almost immediately in
When an array of URLs is specified, the resources will be loaded in parallel
in browsers that support it. Currently, all browsers support loading CSS in
parallel, but only Gecko and Opera support parallel scripts while preserving
The load() method has been replaced by css() and js() methods for loading
CSS and JS, respectively.
The loadOnce() method has been removed, since it wasn't terribly useful.
Improved reliability in all supported browsers.
July 24, 2008
Improved reliability with all supported browsers.
Reduced the minified size to 1751 bytes (a whopping 67 bytes smaller than
Fixed a bug that caused the load completion callback to fire immediately in
Fixed a bug that caused the load completion callback to fail to fire in
Internet Explorer if the script was loaded from the cache.
June 18, 2007
Added "force" parameter to the loadOnce() method to force execution of the
callback even when all specified scripts have already been loaded.
June 2, 2007
Improved browser detection.
Switched to NaturalDocs for source documentation.
May 30, 2007
Fixed potential race condition when load() is called multiple times in