3 ms·
Feature detection is more reliable than version checking, as it can more correctly support a wider range of browsers (that you didn't think to version-test for)
by allannienhuis 7y ago
Feature detection is more reliable than version checking, as it can more correctly support a wider range of browsers (that you didn't think to version-test for). There might be some cases where that's tricky, but it's generally straightforward. Tools like https://modernizr.com/ https://modernizr.com/ can help with that.