Where You Put Your Scripts Could Be Hurting Your Pages

Discussion in 'Design & Development' started by Samuel, Jan 16, 2012.

  1. Samuel

    Samuel
    Expand Collapse
    Admin

    Joined:
    Dec 20, 2011
    Messages:
    5,576
    Likes Received:
    71
    A common mistake that many web developers make is to put all their JavaScript in the HEAD of the document. In fact, in a poll I did last year, 68% of respondents said they put all scripts in the HEAD. This is what we were taught, but it can affect the speed of pages downloading. Instead, get in the habit of putting your scripts last. This article explains why this is important and gives some tips for how to adjust your scripts so that they will work even if they are loaded last.
    Read the full article: Where to Place Scripts in Your Web Documents for Optimal Display
    Help Speeding Up Web Pages


    Continue reading...
     

Share This Page