4 ms·
I first saw that technique used by Moderinizr, which was a very useful tool back in IE8 days! https://modernizr.com/ https://modernizr.com/
by dan1234 5y ago
I first saw that technique used by Moderinizr, which was a very useful tool back in IE8 days!
https://modernizr.com/ https://modernizr.com/
- ok123456 5y agoWhat's wrong with using modernizer now?
- frereubu 5y agoAs long as you don't have to deal with IE11, cross-browser support is much better, partially due to fast release cycles. No point including a whole library if all you want to do is detect whether JS is enabled. Edit: To be clear, Modernizr isn't a big library like jQuery and you can specify the thing you want to detect, so you can cut it down, but it's still pointless if you just want to know if JS is enabled or not.
- _-o-_ 5y agoBrowser landscape changed, absolute majority of users are on one of the evergreen browsers with almost identical feature set.
- jojohohanon 5y agoThere was a post on Metafilter highlighting a similar approach to graceful javascripting, back when javascript was a question, not an answer. Basically, serve a page with formatting done via table layout, and then rewrite it with javascript in the client to use more modern layout tools, depending on which features were available on the browser.
- gerardnll 5y agoWebsite is unmaintained, check the Github repo for the lastest version. https://github.com/Modernizr/Modernizr https://github.com/Modernizr/Modernizr