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

Method preconnectCallback

src/base-element.js:440–442  ·  view source on GitHub ↗

* Called by the framework to give the element a chance to preconnect to * hosts and prefetch resources it is likely to need. May be called * multiple times because connections can time out. * @param {boolean=} opt_onLayout * TODO(#31915): remove once R1 migration is complete.

(opt_onLayout)

Source from the content-addressed store, hash-verified

438 * TODO(#31915): remove once R1 migration is complete.
439 */
440 preconnectCallback(opt_onLayout) {
441 // Subclasses may override.
442 }
443
444 /**
445 * Override in subclass to adjust the element when it is being added to

Callers 1

preconnectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected