Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005

    Load Javascript Last...


    Im 99% sure that a few weeks ago I saw an easy way to make your javascript load after the rest of the page has loaded... however I didnt bookmark the page.

    If anyone knows how to do this then please let me know
    Turn My Text - íspuǝıɹɟ ʞooqǝɔɐɟ ɹnoʎ ǝzɐɯɐ puɐ ǝsnɟuoɔ

    Computer Game Cheats & Codes

  2. #2
    Join Date
    Aug 2002
    What I usually do is put the javascript at the bottom of all the content and then somehow manipulate it to show up wherever I wanted it before. It works with DIV/CSS layouts pretty well.

    I don't know of any other way to get it to load last unfortunately.

  3. #3
    you can use javascript onload event, like this:

    <body onload="yourFunction()">

    or put the following code somewhere in the page:


    it should do the trick.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts