High Tech Sorcery

Firefox seems to load content in noscript tags when javascript is enabled

by on Apr.07, 2011, under Web Development

I can’t find any information about this, partially due to the badly named noscript extension, but it appears that firefox will load an image in a noscript block even when javascript is enabled.  This is troubling for my use because I’ve put a static google map on an app for those that do not have javascript and wrapped it in a noscript to avoid loading it when it’s not needed.  Now javascript users have to download the map twice, once static, once dynamic.  Definitely a waste. Maybe this is fixed in firefox 4.


2 Comments for this entry

  • jan

    I have the same problem here. it seems only to appear with images. iframes and other content is not loaded by firefox. if anybody has an idea how to avoid it, please let me know.

  • Yves

    Here’s why: https://bugzilla.mozilla.org/show_bug.cgi?id=342299

    It only happens in XHTML mode because Firefox needs to parse the whole document tree. In HTML mode it won’t load stuff from . Don’t ask me why it needs to actually load the resources it parsed, but it does. And they won’t fix it.

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...