Support for Link Prefetching
See original GitHub issueHey there,
I was thinking about how to speed up navigation and remembered the case where some flickr pictures were getting deleted because some browsers where prefetching links. But, flickr had implemented DELETE
as GET
… ¬_¬ lovely!
Anyway, these days HTML supports adding prefetch
(and the likes) hints to the browser so it speeds up certain aspects of the navigation.
As part of that, there’s also lazy loading images (which could be its own separate GH issue)… A quick search in this repository gave me a couple of hints that the library we’re using to render images already support it (?).
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Link prefetching FAQ - HTTP - MDN Web Docs
Yes, only http:// and https:// URLs can be prefetched. Other protocols (such as FTP) do not provide rich enough support for client side...
Read more >Resource Hints: prefetch | Can I use... Support ... - CanIUse
Informs the browsers that a given resource should be prefetched so it can be loaded more quickly. This is indicated using <link rel="prefetch"...
Read more >Link prefetching - Wikipedia
Link prefetching allows web browsers to pre-load resources. This speeds up both the loading and rendering of web pages. Prefetching was first introduced...
Read more >Prefetch resources to speed up future navigations - web.dev
This guide explains how to achieve that with <link rel=prefetch> , a resource hint that enables you to implement prefetching in an easy...
Read more >What Is Prefetching and Why Use It - KeyCDN Support
Link prefetching, as discussed in the previous section, is a mechanism that allows the browser to fetch resources for content that is assumed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Aha, that makes sense! Yeah I think this is something we could potentially support in the future. Let’s sit on it for a while 😃
p.s. If anyone comes across this and has some ideas on why this will be useful for them, feel free to comment.
This is why it would come labeled as
use judiciously
… 😄 This shouldn’t be enabled by default.Here’s a sketch of what I have in mind…
There’s a lot more to prefetching, but the immediate benefit I see here is to provide a smoother transition between screens, and the example above tries to reflect that.