Hacker News new | ask | show | jobs
by stedaniels 1875 days ago
Not to bring you down, but to let anyone else know, this isn't novel and has been standard practice for a decade or so.
4 comments

The technique as it isn't new of course, but I doubt this specific implementation (checking for module-supporting JS) is standard practice for a decade.
This doesn't check for "module-supporting JS"

> [not] for a decade

Agreed, probably longer. How old is Modernizr?

Well you're wrong because it does check that it supports modules. Go look at it more closely.
> “To let everyone know, this is not novel”

Who asked?

“Not to bring you down, and not adding anything useful here, but...”
It is kind of useful. I'm trained to feel dubious of anything newly invented if the underlying elements of the solution have been there for 2 decades (there must be some reason people didnt do it that way then). If this is existing practice then it sounds right.
No it hasn't
It’s not novel but consider how unproductive your attitude is. Someone was excited about learning something new, and you took a massive dump all over it, with no benefit whatsoever. If you’re upset that not everyone knows everything, you should be working to cultivate that excitement!

https://xkcd.com/1053/