onJSReady Prototype Plug-in
Written by on July 30th, 2008 in Uncategorized.
In a follow-up to our post a few days ago on parallelizing JavaScript loading and firing an event when loading is done, Stefan Hayden wrote a Prototype extension (based on onDOMReady) that makes it easy for you to execute your code when all JavaScript is loaded:
JAVASCRIPT:
-
-
Event.onJSReady(function () { dependent_on_external_js(); });
-
Source: Ajaxian » Front Page
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/350541973/onjsready-prototype-plug-in