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

Method getActiveHints

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

* Get all active resource hints

()

Source from the content-addressed store, hash-verified

288 * Get all active resource hints
289 */
290 getActiveHints() {
291 const links = document.head.querySelectorAll('link[rel="preconnect"], link[rel="prefetch"], link[rel="preload"], link[rel="dns-prefetch"]');
292 return Array.from(links).map(link => ({
293 rel: link.rel,
294 href: link.href,
295 as: link.as
296 }));
297 }
298}
299
300// Export singleton instance

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected