2 ms·
Don't do a UA check. Just let it be broken. At the absolute worst put up a page warning users it might not work, then let them try anyway.
by Sir_Cmpwn 10y ago
Don't do a UA check. Just let it be broken. At the absolute worst put up a page warning users it might not work, then let them try anyway.
- jarek-foksa 10y agoThis approach works with mostly static or server-side generated websites, but with JS-heavy SPA unsupported browsers would be just showing a blank page. Currently I'm checking whether the browser supports Custom Elements v1, Shadow DOM v1 and HTML imports. If it does not, I'm showing the fallback page.