The <mycustomelement> tag below is upgraded by the custom-elements module: its behaviour lives in elements/custom.js and is lazy-loaded when the tag appears.
<mycustomelement>
custom-elements
elements/custom.js
Events received by the element: