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

Method getPreconnects

src/base-element.js:219–221  ·  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. * * Returns an array of URLs to be preconnected. * * @param {!AmpElement} unusedElement *

(unusedElement)

Source from the content-addressed store, hash-verified

217 *
218 */
219 static getPreconnects(unusedElement) {
220 return null;
221 }
222
223 /**
224 * Subclasses can override this method to indicate that instances need to

Callers 2

test-amp-img-v1.jsFile · 0.45
upgradeOrSchedule_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected