question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

False positive on noscript tag

See original GitHub issue

Summary

I created a new app using preact-cli:

preact create default <appname>
cd <appname>
npm run serve

screen shot 2018-08-25 at 10 33 02 am

I added a noscript tag in the main component and it is shown when i disable JS however the score on lighthouse is still at 82 and it says that i should add a noscript tag.

    return (
      <div id="app">
        <noscript>
          <div style="position: fixed; top: 0px; left: 0px; z-index: 3000; 
                      height: 100%; width: 100%; background-color: #FFFFFF">
            <p style="margin-left: 10px">JavaScript is not enabled.</p>
          </div>
        </noscript>
				<Header />
				<Router onChange={this.handleRoute}>
					<Home path="/" />
					<Profile path="/profile/" user="me" />
					<Profile path="/profile/:user" />
				</Router>
			</div>
    );
  }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Aug 29, 2018

Oooooh of course, I forgot about this thank you very much for tracking it down @justinribeiro! #1217 captures this issue as well. I’ll go ahead and close, but I’m open to a PR adding this note to the documentation 😃

1reaction
justinribeirocommented, Aug 29, 2018

It’s a known issue with simplehttp2server that the connection is reset for the http > https redirect (there’s even an older comment noting this causes issues for LH) https://github.com/GoogleChromeLabs/simplehttp2server/issues/33

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoScript XSS warning - InformAction Forums
False positive ? I notice this "XSS attempt" comes from "[...]". If you block it, does it actually break the site ...
Read more >
HTML <noscript> Tag
HTML noscript tag - represents alternative content for browsers that don't support javascript (or ... false, Specifies that the element is not draggable....
Read more >
<noscript> html tags are not rendered if the Content-Security ...
Eh, sorry, false alarm. His behaviour is perfect - noscript tags get parsed if the website that owns the document containing them gets...
Read more >
how noscript tag treated in different browsers - Stack Overflow
The reason I'm asking this question is that I'm afraid some browsers may treat the noscript tag as something as text(if JS is...
Read more >
Say No to noscript - Juicy Studio
I'm surprised that the noscript element is conforming in HTML5, ... of sports scores </SCRIPT> <NOSCRIPT> <P>Results from yesterday's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found