MCPcopy
hub / github.com/ampproject/amphtml / handleOnLoad

Method handleOnLoad

src/preact/amp-base-element.js:66–70  ·  view source on GitHub ↗

* Default handler for onLoad event * Displays loader. Override to customize. * @protected

()

Source from the content-addressed store, hash-verified

64 * @protected
65 */
66 handleOnLoad() {
67 this.toggleLoading?.(false);
68 this.toggleFallback?.(false);
69 this.togglePlaceholder?.(false);
70 }
71
72 /**
73 * Default handler for onLoading event

Callers 1

getDefaultPropsMethod · 0.95

Calls 3

toggleLoadingMethod · 0.45
toggleFallbackMethod · 0.45
togglePlaceholderMethod · 0.45

Tested by

no test coverage detected