2 ms·
How does this relate to the preload spec <link rel=“preload”> is it only preloading when the link is visible/hovered over? https://w3c.github.io/preload/ https
by helsinkiandrew 6y ago
How does this relate to the preload spec <link rel=“preload”> is it only preloading when the link is visible/hovered over?
https://w3c.github.io/preload/ https://w3c.github.io/preload/
https://caniuse.com/link-rel-preload https://caniuse.com/link-rel-preload
- divbzero 6y agoLooks like instant.page at its core uses <link rel=prefetch>: [1] const prefetcher = document.createElement('link') prefetcher.rel = 'prefetch' prefetcher.href = url document.head.appendChild(prefetcher) [1]: https://github.com/instantpage/instant.page/blob/v5.1.0/instantpage.js#L230-L233 https://github.com/instantpage/instant.page/blob/v5.1.0/inst...