back

by sergiotapia·13y ago·view on hn ↗
I really look forward to the media and prefetching API's. They seem really needed, and now that I've read about them, I wish I could use them in production.
1 comments
Well, you can rel="prefetch" it just won't do anything unless you're using Firefox (AFAIK).
you can also use "prerender"[0] which will work in chrome but has a slightly different behaviour

https://developers.google.com/chrome/whitepapers/prerender

Is there a privacy vulnerability with prefetching? I can imagine timing it and making inferences about whether it's been cached and therefore previously visited.
Possibly true, but I'm pretty sure you can already do that with something like <img onload="someJavascript()">
I don't see how you would be able to tell how long it takes to load- unless you control the site it's prefetching, in which case you should be able to tell if they've been there before anyway.