Website Designers R Us - Home
Deferring script execution

Sometimes, you put a script in a certain place in a document for a certain reason. For instance, the following script adds the current time and date at the specific point in the document:

<SCRIPT
 TYPE="text/ecmascript"
 LANGUAGE="JavaScript"
>
<!--
today = new Date();
document.write("The time right now is " + 
               today.toString())
//-->
</SCRIPT>

Other script might do things that are not related to the document itself, such as set up event handling. If a SCRIPT element has the DEFER attribute, it indicates that the script contained or linked in that element does not have to be executed immediately. Although this is a nice addition to HTML 4.0, to my knowledge it is as yet unsupported by any browser. However, if you insert scripts that can be executed later on while the rest of the document is rendered, use this attribute, since it has no adverse effects.

Return to Listing

Website Designer R Us is the right company to get your job done professionally and cost effectively. We've seen the good, the bad, and the ugly, and we are here to help you by recommending the services that match your needs based on our knowledge of other website designers and web design companies whom can perform the type work you are needing.
 Home          ::             About Us          ::             Support            ::             Services            ::             Link Partners          ::             Contact

Copyright © 2006-2007 Website Designers R Us, a DOT Specialist Company. All rights reserved.