RSS
 

Where You Put Your Scripts Could Be Hurting Your Pages

16 Jan

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

  • How to Speed Up Your Web Pages
  • Put Scripts in External JavaScript Files to Speed Page Downloads
  • Where Should CSS Be Placed in an HTML Document?

About.com Web Design / HTML

 
 

Tags: , , ,

Leave a Reply