How to dynamically install custom elements. @heydon shows a naming convention, a tiny define() helper, and an install() script that scans :not(:defined), dedupes matches, and dynamically imports only what is used. For dependent components, it can fire a ready event or use a MutationObserver for elements added later. #js #webcomponents
heydonworks.com/article/dynami…
How To Dynamically Install Custom Elements
A reusable pattern for custom elements installationHeydon Pickering (HeydonWorks)
