var webComponentsSupported = ('registerElement' in document
&& 'import' in document.createElement('link')
&& 'content' in document.createElement('template'));
is the current feature detect. That checks for custom elements, imports,
and <template>. As browsers implement
the different APIs, you'll have to adapt this snippet.
On Wed, Sep 9, 2015 at 10:02 AM <[email protected]> wrote:
> I have launched my MVP earlier, or rather my pre MVP to test with friends.
> A friend of mine wouldn't get anything rendered due to an old Firefox and
> Chrome, so it really makes me anxious about releasing this to some
> customers next week. That's why I want to track webcomponents support and
> save it in my database so I can see for whom it worked properly and for
> whom only polyfilled or not at all.
>
> Is there a reliable way to check for webcomponents as a whole, seperately
> and/or to do a check if (Polymer) components rendered properly?
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/1786ded7-6b75-4d6d-b1dc-27a1f20a10d6%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/1786ded7-6b75-4d6d-b1dc-27a1f20a10d6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/CACGqRCAtTg3XR0US2%3DmRxCz0wL2ho4qaZrPaXYA6NzNnjBeFgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.