An Approach to Lazy Loading Custom Elements

An Approach to Lazy Loading Custom Elements

connectedCallback() { let scope = this.parentNode; defer(() => { this.discover(scope); }); let observer = this._observer = new MutationObserver(mutations => { for(let { addedNodes } of mutations) { for(let node of addedNodes) { defer(()…