Attribute for <SCRIPT ...>
DEFER
<SCRIPT ...>| Usage Recommendation |
|---|
| use it, but don't rely on it |
By default, when you use <SCRIPT SRC="...">DEFER
DEFERdocument.write()). In those situations it is better to let the user see the page while the sacript.
For example, the following code indicates that the page should load the
delscript.js script, but should do so in the background.
delscript.js takes at least ten seconds to load (it was designed that way to simulate a lengthy download).
| this code | produces this |
<SCRIPT SRC="../cgi-bin/delscript.js" DEFER ></SCRIPT> |
this page |
Copyright 1997-2002 Idocs Inc.
