A reusable pattern for dynamically loading custom elements without bundling. The approach uses naming conventions (class names matching file names with a configurable suffix), static initialization blocks for self-registration, and dynamic imports to load only the custom elements present in the DOM. The pattern supports both

8m read timeFrom heydonworks.com
Post cover image
Table of contents
NamingLoadingThe ready eventAppended elements

Sort: