PDA

View Full Version : JavaScript issue when Statcounter servers are slow


meilingw
09-11-2006, 11:07 PM
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

webado
09-12-2006, 12:00 AM
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?verbose=1&uri=http://www.esellerstreet.com/shoes.php : Failed validation, 6357 errors :shock:

Sorry, I have never seen that many errors on a single web page!

trackerm
09-12-2006, 12:28 AM
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

trackerm
09-12-2006, 12:40 AM
Can you use prefetch to start loading the page earlier? or is it an entry page?

meilingw
09-12-2006, 01:38 AM
I should win a prize for that! :oops:

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

Michelle

webado
09-12-2006, 02:59 AM
I should win a prize for that! :oops:

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! :-D

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

webado
09-12-2006, 03:07 AM
I should win a prize for that! :oops:

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! :-D

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

meilingw
09-12-2006, 01:03 PM
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