August 9, 2019

No-polyfill HTML 5 Web Components in Vanilla JS

The increasingly supported Web Components v1 API allows very flexible use of the DOM by declaring custom tags and defining their behavior, among other things. However, its use in production as of 2019 requires polyfill scripts and I’m shy about adding those to my production builds without careful consideration. In this post, I explore the older and simpler way to achieve similar results with backwards and forwards compatible strategies.

© 2008-2023 Stéphane Lavergne — Please ask permission before copying parts of this site.

Powered by Hugo & Kiss.