Re: [WSG] Site test Google analytics

2007-07-26 Thread Tee G. Peng


On Jul 26, 2007, at 2:24 PM, Jason Robb wrote:


Hello everyone,

I launched a site today. http://www.barbarawellsstudio.com - I'm  
looking for some criticism, any suggestions are appreciated. On a  
side note, I posted a thread back in late May on Photo Gallery  
markup. My solution is located here: http:// 
www.barbarawellsstudio.com/collections/


Also, when including Google Analytics, they ask to insert the  
script into the body, just before the end of the /body.


Hi Jason, in Firefox, there is a one pixel gap between the tab and  
the color bar. I only took a look from Mac, but pretty sure the same  
thing is showing in PC too as I had encountered the very same problem  
with a site that also have color coded tabs. The color bar is quite  
thick therefor you can use line-height or padding bottom to  
compensate easily.


The collections page loads a bit slow for me though - I am on cable  
broadband. I was once quite fancy with this lightbox gallery, but  
very soon I got so sick of it I can't even bear to look at it :)  
Think it goes better with blog.


tee




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Site test Google analytics

2007-07-26 Thread James Ellis
HI Jason

You can stick it in the head of the document although that will load it
prior to the rest of the document being loaded which may cause the page to
display a bit later than usual. The way around that issue is to use an event
listener on load, it could even be delayed by a few seconds using a
settimeout but not too much that the visitor will leave before it fires.

Ggl only suggest sticking it at the end of the body to avoid interference
with page load issues, it's sort of a poor mans load handler.

I'm pretty sure having script in the head is ok for all html and xhtml
doctypes (strict transitional etc) so you can have your standards cake and
eat it too.

Cheers
James

-Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Jason Robb
 Sent: Thursday, July 26, 2007 4:25 PM
 To: wsg@webstandardsgroup.org
 Subject: [WSG] Site test  Google analytics

 Hello everyone,

 I launched a site today. http://www.barbarawellsstudio.com - I'm looking
 for some criticism, any suggestions are appreciated. On a side note, I
 posted a thread back in late May on Photo Gallery markup. My solution is
 located here: http://www.barbarawellsstudio.com/collections/

 Also, when including Google Analytics, they ask to insert the script
 into the body, just before the end of the /body.

 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.

 Much thanks in advance,

 Jason Robb
 www.eleventy72.com




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RE: [WSG] Site test Google analytics

2007-07-26 Thread Joyce Evans
I like the photo gallery.  Did you get the code from another source, or did
you write it?  If from another source, do you mine sharing?  I wasn't a
member back in May.

Thanks.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Robb
Sent: Thursday, July 26, 2007 4:25 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] Site test  Google analytics

Hello everyone,

I launched a site today. http://www.barbarawellsstudio.com - I'm looking 
for some criticism, any suggestions are appreciated. On a side note, I 
posted a thread back in late May on Photo Gallery markup. My solution is 
located here: http://www.barbarawellsstudio.com/collections/

Also, when including Google Analytics, they ask to insert the script 
into the body, just before the end of the /body.

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.

Much thanks in advance,

Jason Robb
www.eleventy72.com


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Site test Google analytics

2007-07-26 Thread Matthew Cruickshank

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]
***