Jump to content
IGNORED

Long Running Script issue


philobert
 Share

Recommended Posts

Hello,

 

I live in a rather small area where I only have 3G wifi and it's dreadfully slow. when I try to log on from home it takes forever and I get a microsoft note saying the "site is taking a long time to load due to a long running script". occasionally I can stop the script at this point (there's a button) and the board will load, other times it times out (or something) and I get an error and the page won't load. I'm not sure what the script is but once I stop it (if I am able to) the board seems to load and run fine. when I get somewhere that has a stronger wifi signal the board seems to load with no issue (I do not get this note/error).

 

What I am curious about is if there is some way I can permanently disable the 'script' from running on my login (or in my prefence's, etc) so it's easier for the board to load on my slower (home) wifi's?

 

thanks

 

cheers

 

bert

Edited by philobert

Pattaya's dead.  You read it here1st.

Link to comment
Share on other sites

no help from the mod's or admin then?

 

bert

Pattaya's dead.  You read it here1st.

Link to comment
Share on other sites

I'll ask for you. It would help us immensely if you could tell us the name of the script. In meantime you could try Firefox with the noscript add-on. Hopefully you should be able to stop the offending script from running.

Link to comment
Share on other sites

I may try fire fox, I currently only use explorer.

 

windows doesn't say what the script is, it just notes it as a "long running script"

 

thx for the response.

 

cheers

 

bert

Pattaya's dead.  You read it here1st.

Link to comment
Share on other sites

The main page here takes 30 seconds to load on my system anytime I go to it. It's very frustrating. All other pages are ok and this is the only website that this happens.

Link to comment
Share on other sites

If you use Chrome or Safari, use the Web Inspector and check script profiler - on this page I'm seeing 14 javascript files, 3 of which are large and do pretty much the same thing (scriptaculous, prototype and jquery). And that's just the local files - there are 4 external tracking files (Facebook Connect, Google Analytics, Google+ and MaxMind) and they may not all run as asynchronous scripts...lots of stuff here that can slow things down.

Link to comment
Share on other sites

If you use Chrome or Safari, use the Web Inspector and check script profiler - on this page I'm seeing 14 javascript files, 3 of which are large and do pretty much the same thing (scriptaculous, prototype and jquery). And that's just the local files - there are 4 external tracking files (Facebook Connect, Google Analytics, Google+ and MaxMind) and they may not all run as asynchronous scripts...lots of stuff here that can slow things down.

 

You can also try gradually restricting scripts in Internet Explorer and see if that helps. It doesn't hurt to know what scripts you are allowing in IE anyway. The below link may be helpful.

 

http://www.google.co...44&bih=855&bs=1

Edited by CyberPro
Link to comment
Share on other sites

It'd be a good start if the admins could at least decide which single Javascript library to use and tailor the site to only use it.

 

In the early days of Javascript library there were a bunch of competing project: Prototype.js, MooTools, Scriptalicious, jQuery (to name a few)…and in the end jQuery won. It's getting faster, smarter and smaller each year - the others acquiesced and pretty much stopped trying around 2010. Anyway, if you need a library to build your web tools and effects on, jQuery is it.

 

But don't you know, we use 3 here.

 

Those three I previously mentioned, scriptaculous, prototype and query, will get loaded before any script or page code runs. Right now Prototype and the particular Scriptaculous libraries eat up the first 230K of any page. Why I mention is it that it's wasted - jQuery is being loaded at the same time and can pretty much replace those other 2, shaving off a quick 230K. Adding a library to downscale photos to a max size (a max height & width * dpi) can make a massive effect here too.

 

Right now there's a bunch of tailoring that could go into making it a faster, better site because the world is going mobile and it needs to. I get the impression from the cleaned-up header that perhaps it's happening - I always offer help but never hear back, so I assume the admins have it in hand and are doing their thing.

Edited by Woofiee
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



  • COVID-19

    Any posts or topics which the moderation team deems to be rumours/speculatiom, conspiracy theory, scaremongering, deliberately misleading or has been posted to deliberately distort information will be removed - as will BMs repeatedly doing so. Existing rules also apply.

  • Advertise on Pattaya Addicts
  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.