Javascript Defer

The term is "defer" when you want JS to wait until the entire html page has been loaded before doing it's thing.

This is a good reference:

http://www.hunlock.com/blogs/Deferred_Javascript


Just insert

defer='defer' into the script tag. works for inline and included files.


tags: wait, delay, js, defer
Related Scribbles:
  • Javascript Notes


  • ID: 902
    Author:
    leonard
    Date Updated:
    2008-04-29 16:25:55
    Date Created:
    2008-04-29 16:25:55

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Javascript Defer
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.