MyBB Community Forums

Full Version: Forum loads too fast?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,
My forum use a Color Picker (.jq).
How it works?
- It use a default color
- It default color fails, it use background color
- The user select a color and it's saved as cookie

The problem:
- When I type the website's URL from school (slow internet + proxy), I only see the background color, this means some JavaScript didn't loaded.
9/10 times I type the URL it fails to load the cookies. But if I press F5 or I change the page (to a thread or something) I see the color and I can use the color picker.

I think it's because the website loads too fast and if the connection is slow it skip the scripts? It's possible?
Or the school may tried to disable Java?
The reason may be the script doing:
Check if cookie exists -> If fails load default color -> set cookie.

Instead of:
Check if cookie exists -> set if fail -> load color picker.

But I may as well need a nap.
Java, and Javascript are not the same.