The browser’s `customElements` global provides access to a CustomElementRegistry. Use its helpers to check whether an element is registered, wait for its definition, or upgrade elements in a subtree. section 7.6.5
The registry’s helper methods support these tasks:
- `get(name)` returns the registered constructor or `undefined`. section 7.6.5
- `whenDefined(name)` returns a promise that resolves when the element is registered, allowing work to wait until a component is available. section 7.6.5
- `upgrade(root)` upgrades registered custom elements in a subtree. It is rarely needed, but can help when markup is injected before registration. section 7.6.5
