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

Method layoutCallback

src/base-element.js:593–595  ·  view source on GitHub ↗

* Called when the element should perform layout. At this point the element * should load/reload resources associated with it. This method is called * by the runtime and cannot be called manually. Returns promise that will * complete when loading is considered to be complete. * * The f

()

Source from the content-addressed store, hash-verified

591 * TODO(#31915): remove once R1 migration is complete.
592 */
593 layoutCallback() {
594 return Promise.resolve();
595 }
596
597 /**
598 * Called to notify the element that the first layout has been successfully

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected