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

Method prefetchData

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

* Prefetch data endpoint

(url)

Source from the content-addressed store, hash-verified

190 * Prefetch data endpoint
191 */
192 prefetchData(url) {
193 // Use fetch with low priority if supported
194 if ('fetch' in window) {
195 fetch(url, {
196 priority: 'low',
197 credentials: 'same-origin'
198 }).catch(() => {
199 // Ignore prefetch errors
200 });
201 }
202 }
203
204 /**
205 * Create and append link element to head

Callers 1

prefetchIdleResourcesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected