<noscript> stuff </noscript> doesn't work on google chrome
Asked Answered
E

5

6

I wanted to display a message on the top of my site when the javascript is disabled (just like on SO), but on google chrome is not working

Extract answered 7/5, 2010 at 8:25 Comment(5)
Seems to be a bug in the current version(s). Reports: code.google.com/p/chromium/issues/detail?id=40085 and bugs.webkit.org/show_bug.cgi?id=36092Aklog
Just an update: The issue has been resolved (and it was a simple mistype error) trac.webkit.org/changeset/56064Ludovick
There is still the issue (on Windows Chrome versions) that when a page is first loaded, contents of <noscript> displays as html text, instead of being rendered. A second refresh fixes that. So this is still a good way to avoid <noscript> annoyances.Protactinium
Is there any other way to achive without refreshing twice ?Remy
using the chrome development tools(F12) to disable JavaScript did NOT cause the rendering issue but clicking the icon next to the url and disabling JavaScript for the site in site Settings did, where refresh then fixed the issue) Version 42.0.2311.90 mReheat
B
11

Looks that way.

You can use javascript to hide a 'noscript' message.

Botulism answered 7/5, 2010 at 8:35 Comment(1)
and if there is not going to be js, it is not going to be hidden, you're a geniusExtract
F
2

Odd. I can repro this in Chrome 4.1.249.1064 (45376)

I had trouble finding it, so here's how:

you can disable JavaScript on Chrome in Options > Under the Hood > Privacy > Content > Javascript >

Farrar answered 7/5, 2010 at 9:28 Comment(1)
yes, that's how I disabled js in chrome, and SO didn't showed me the content of <noscript> tag, it works with the @Botulism solution on my siteExtract
G
1

I have the current version: Version 30.0.1599.69 m and can confirm the same or a similar issue. With javascript disabled, html within the <noscript> tag displays verbatim, not rendered as html html is supposed to format.

Note, this happens one time and one time only: the first time after javascript is disabled. Thereafter, all is well. Refresh the screen and <noscript> works as expected. As such, someone browsing with javascript routinely disabled would not generally experience the quirk.

Goldeye answered 11/10, 2013 at 22:29 Comment(0)
F
0

Hmmm... I've opened Google Chrome with Javascript issuing:

 c:\Documents and Settings\grzole\Local Settings\Application Data\Google\Chrome\Application>chrome -disable-javascript

And when visiting some <noscript> example found on Internet I can see the message:

http://www.java2s.com/Code/HTMLCSS/Object-Tags/noscriptExample.htm

http://www.java2s.com/Code/HTMLCSSDemo/noscriptExample.htm

So it looks like it's working. I have Google Chrome 2.0.172.39.

Figment answered 7/5, 2010 at 8:39 Comment(0)
C
0

I can confirm this bug with current Chrome (4.1.249.1064). It seems not to be a Webkit issue because other webkit-based Browsers support the tag.

Although hiding the text with Javascript may be possible, it is not really an option; the noscript tag is part oof the w3c standard an so it should be supported by a browser that claims to be standards compliant.

Cobbs answered 18/5, 2010 at 8:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.