Hacker News new | ask | show | jobs
by theallan 1077 days ago
Doesn't that make the page completely unreadable for those few who have Javascript disabled though?
2 comments

Yes, this breaks the fundamental web concept of graceful degradation.
You add a simple <noscript> tag to the top of the body that does the right thing for them
Too bad that visibility:hidden will hide this noscript tag.

Disabled JS != disabled CSS.

The only purpose of the noscript tag is turn the visibility back on and maybe setup some other noscript-specific styling.

<noscript> <style> body {visibility: visible; opacity: 1;} </style> </noscript>

Thanks for clarification, that’s a neat idea.