StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Help

Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2006, 12:07 AM
meilingw meilingw is offline
Junior Member
 
Join Date: Sep 2006
Posts: 7
Default JavaScript issue when Statcounter servers are slow

Hello,

I have javascript for a sortable table on this page: http://www.esellerstreet.com/shoes.php

I notice that my javascript takes a long time to run if the statcounter site is slow or unresponsive. I check statcounter's status by going to www.statcounter.com and it doesn't load.

Can you recommend a code fix for me?

Thanks in advance, Michelle
Reply With Quote
  #2  
Old 09-12-2006, 01:00 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,147
Default

The Statcounter code is OK where you have it, last thing on the page. So if your own javascript is slow it's totally unrelated to how slow Statcounter's script may be.

I't not slow for me, I am not noticing anything unusual.

But if you yourself are having problems accessing the Statcounter site and that's a problem with your browser/firewall/anti-spyware security/privacy settings.

And then again, look here: http://validator.w3.org/check?verbos....com/shoes.php : Failed validation, 6357 errors

Sorry, I have never seen that many errors on a single web page!
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.

Last edited by webado; 09-12-2006 at 02:16 AM.
Reply With Quote
  #3  
Old 09-12-2006, 01:28 AM
trackerm's Avatar
trackerm trackerm is offline
Moderator
 
Join Date: Oct 2003
Location: Sydney, Australia
Posts: 3,336
Default

Yep, Statcounter appeared very slow at the time you wrote this, 1 1/2 hours ago, in Australia anyway.
I have often noticed that when it goes slow for me it doesnt seem to affect everyone.

Mark
__________________

Gone Sailing!
www.OurLifeAtSea.com
Reply With Quote
  #4  
Old 09-12-2006, 01:40 AM
trackerm's Avatar
trackerm trackerm is offline
Moderator
 
Join Date: Oct 2003
Location: Sydney, Australia
Posts: 3,336
Default

Can you use prefetch to start loading the page earlier? or is it an entry page?
__________________

Gone Sailing!
www.OurLifeAtSea.com
Reply With Quote
  #5  
Old 09-12-2006, 02:38 AM
meilingw meilingw is offline
Junior Member
 
Join Date: Sep 2006
Posts: 7
Default

I should win a prize for that!

I got it down to 20 errors and now I can see there are a few javascript errors. Thanks for pointing this out.

Michelle
Reply With Quote
  #6  
Old 09-12-2006, 03:59 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,147
Default

Quote:
Originally Posted by meilingw
I should win a prize for that!

I got it down to 20 errors and now I can see there are a few javascript errors. Thanks for pointing this out.

Michelle
Way to go! Amazing recovery!

A lot of those remaining errors are because you used uppercase in the tag instead of lowercase as is required for an xhtml doctype.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
Reply With Quote
  #7  
Old 09-12-2006, 04:07 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,147
Default

Quote:
Originally Posted by meilingw
I should win a prize for that!

I got it down to 20 errors and now I can see there are a few javascript errors. Thanks for pointing this out.

Michelle
Way to go! Amazing recovery!

A lot of those remaining errors are because you used uppercase in the tag instead of lowercase as is required for an xhtml doctype.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
Reply With Quote
  #8  
Old 09-12-2006, 02:03 PM
meilingw meilingw is offline
Junior Member
 
Join Date: Sep 2006
Posts: 7
Default

Thanks for the encouragement Christina. I've been spending most of my time on the SQL side of things and unfortunately ignoring the HTML/CSS.

Hi Mark - I'll investigate prefetching. I'm not very familar with Java script. Somehow the sortable code is being hung up by the statcounter code waiting for the statcounter server. Even though the statcounter code is at the bottom of the page.

At the time, I couldn't reach www.statcounter.com from my home and the affected script was running on a server in Atlanta.

Michelle
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.