Couldn’t come up with the Javascript library that adds capabilities supported by your browser as a class to your html element.
It was Modernizr, a library way more popular in the more turbulent years of the browser wars and the start of Web 2.0
31 januari 2025 update: it must be 10 years ago that I had to use this, but today I need to write browser-specific code again 😕.
After fruitlessly searching the web using Google, I asked ChatGPT for an update. It came up with some alternatives:
- platform.js: has been archived by the maintainer (fellow Belgian Mathias Bynens)
- bowser.js: which, if memory serves, even predates Modernizr
- detect.js: a User Agent parser
Leave a Reply
You must be logged in to post a comment.