MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / addPrefetch

Method addPrefetch

src/js/modules/resource-hints.js:260–266  ·  view source on GitHub ↗

* Dynamically add prefetch hint

(href, as = 'document')

Source from the content-addressed store, hash-verified

258 * Dynamically add prefetch hint
259 */
260 addPrefetch(href, as = 'document') {
261 this.createLink({
262 rel: 'prefetch',
263 href,
264 as
265 });
266 }
267
268 /**
269 * Preload critical CSS

Callers

nothing calls this directly

Calls 1

createLinkMethod · 0.95

Tested by

no test coverage detected