[Custom Elements] Add a lazyDefine
feature to explore a future spec proposal.
#116
Labels
lazyDefine
feature to explore a future spec proposal.
#116
Add a feature that allows defining custom elements via a function that is only run when the first element is found to be customized. This potentially allows the code needed to upgrade the element to be fetched on demand.
Something like
customElements.polyfillDefineLazy(name, classGenerator)
whereclassGenerator
is a function that returns a promise that resolves to a custom elements constructor function.The text was updated successfully, but these errors were encountered: