assume a custom elment being defined and using CustomElements.whenDefined function to check when that happes:
CustomElements.whenDefined
customElements.whenDefined("fo