Jason Robb wrote:
My question is this: If I insert the <script> anywhere but the <head>,
does this break any rules or standards? Shouldn't all scripts be
located in the head ONLY? Perhaps I am way off on this.
HTML 4.01 states,
"The SCRIPT element places a script within a document. This element may
appear any number of times in the HEAD or BODY of an HTML document."
So it doesn't make any difference, and as Google Analytics doesn't do
document.write() or anything like that then you can just ignore Google's
advice.
(for those with server-side languages I suggest seeing whether Google
Analytics is slow because you can download it and cache it yourself. I
found that it added 3 seconds to my page load times so I ended up
writing a temporary file and refresh it when that file's modified time
was too old. See http://urltea.com/12nb )
.Matthew Cruickshank
http://docvert.org << Convert Microsoft Word to HTML, RSS, or any XML format
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************