1.

Solve : Script won't load in Firefox?

Answer»

The JS code for blinking text on my site won't load for me in Firefox.

-Offline, it works fine in all browsers
-Online, it works fine in Chromium and Epiphany
-Online, the JS will not load. All other content (HTML/CSS) loads, but it continues to be 'loading' indefinitely, and will never load the JS (meaning the text will not blink).
-Someone else with a faster connection claimed the text blinks in Firefox

How can I fix this? The URL is http://site-x.zxq.net/. Yes, it's a Rickroll site, but I am not trying to troll anyone here, my question/problem is real.

I've tried it multiple times, and it never works in Firefox. Always in Chromium.

Lastly, I am semi-decent with HTML/CSS but I hardly know anything about JS. I modified code from a w3schools.com sample to make the text blink. So please keep the advice as noob-friendly as possible.

Ubuntu 10.04 LTS if it matters. Slow connection (phone tethered to laptop; high speed isn't available here).

Thanks. QUOTE

Offline, it works fine in all browsers

Offline it works & Online it doesn't to me points to security related to Java Script. FF15 is blocking JS from online sources yet it allows it to execute locally. I'd go into security and make sure JS is enabled for both LOCAL and www.

Internet speed shouldn't MATTER as for once the HTML is loaded with the JavaScript the TEXT should blink, once loaded you could unplug from internet and it will continue to blink. Can you list your JavaScript source here so I can look it over for issues? There's a way to blink text through CSS, which would make JS unnecessary. (btw the JS worked for me in firefox 18.0a1-20120907)
Code: [Select]<span style="text-decoration: blink;">blink text</span>I just opened the site again in Firefox and after waiting a long time (few minutes maybe) the script finally loaded. But I don't get why it TOOK so long. My connection is slow, but not that slow. It only takes a few seconds max for the SWF video on my site to load, and most web pages will fully load in a few seconds.

DaveLembke, in I have Code: [Select] <script type="text/javascript">
function blink()
{
if (!document.getElementById('blink').style.color)
{document.getElementById('blink').style.color="white";}
if (document.getElementById('blink').style.color=="white")
{document.getElementById('blink').style.color="#CC00FF";}
else
{document.getElementById('blink').style.color="white";}
timer=setTimeout("blink()",333);
}
function stop()
{clearTimeout(timer);}
</script>
In body I use and text.


TechnoGeek, that's the same as the tag, correct? I used before, and it worked in Firefox but not in Chromium, which is why I switched to JS. It was also due in part to the tag not even being listed on w3schools.com making me think it is obsolete or something. I tried your version and again, it works in Firefox, but not Chromium (even offline it does not work in Chromium). I've never had issues with Chromium not loading scripts in the past, so I don't think it's an issue with my settings. Quote from: ShadowVegan on September 08, 2012, 07:35:47 PM
TechnoGeek, that's the same as the <blink> tag, correct?

No. It's a CSS text decoration. It's part of the HTML DTD.Regardless, they both had the same effect: Work in Firefox, not Chromium. Using HTML5 doctype if it matters.Found this:
http://stackoverflow.com/questions/4894488/blinking-text-cross-browserI'll take a look, thanks.


Discussion

No Comment Found