//defining autonomous custom elements: if(!customElements.get('my-element')){ customElements.define('my-element',MyElement); } //defining customised button element: if(!customElements.get('custom-button')){ customElements.define('custom-button',CustomButton,{extends:'button'}) }