3 ms·
Browser makers always recommend feature detection (i.e. use a feature if it's available) over hacks like user-agent sniffing to selectively enable features. Web
by AshleysBrain 4y ago
Browser makers always recommend feature detection (i.e. use a feature if it's available) over hacks like user-agent sniffing to selectively enable features. Web developers can't look in to a crystal ball and pre-emptively code around APIs with unexpected issues.
- turnsout 4y agoBut you can avoid adopting APIs that have been Chrome-only until 5 minutes ago…
- AshleysBrain 4y agoThat means avoiding features that can enhance your software, improve performance, and help get ahead of competitors.
- turnsout 4y agoYeah, that's one of the many tradeoffs in developing a web app. It has not changed since the Netscape days.