View RSS Feed


  1. Firing scripts on page load

    EDIT 02-12: I added some ameliorations to the tutorial and designated a 'best method' for firing load events.
    Many people think that putting a script at the end of the body section guarantees that it will fire because of its position in the document. While this is true in many cases, we can't rely on this because a script put at the end of the document starts to run as soon as the dom is ready (unless we inform it to wait using a timeout or another method). At this 'domready stage', there ...

    Updated 02-12-2018 at 10:51 PM by molendijk