MCPcopy Create free account
hub / github.com/ampproject/amphtml / unlayoutCallback

Method unlayoutCallback

src/base-element.js:635–637  ·  view source on GitHub ↗

* Requests the element to unload any expensive resources when the element * goes into non-visible state. The scope is up to the actual component. * The component must return `true` if it'd like to later receive * layoutCallback in case document becomes active again. * * @retur

()

Source from the content-addressed store, hash-verified

633 * TODO(#31915): remove once R1 migration is complete.
634 */
635 unlayoutCallback() {
636 return false;
637 }
638
639 /**
640 * Subclasses can override this method to opt-in into calling

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected