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

Method whenBuilt

src/service/resource.js:313–316  ·  view source on GitHub ↗

* Returns promise that resolves when the element has been built. * @return {!Promise}

()

Source from the content-addressed store, hash-verified

311 * @return {!Promise}
312 */
313 whenBuilt() {
314 // TODO(dvoytenko): merge with the standard BUILT signal.
315 return this.element.signals().whenSignal('res-built');
316 }
317
318 /**
319 * Requests the resource's element to be built. See {@link AmpElement.build}

Calls 2

whenSignalMethod · 0.80
signalsMethod · 0.45

Tested by

no test coverage detected