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.
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.