3 ms·
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.
by sergiotapia 14y ago
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.
- eli 14y agoWell, you can rel="prefetch" it just won't do anything unless you're using Firefox (AFAIK).
- riffraff 14y agoyou can also use "prerender"[0] which will work in chrome but has a slightly different behaviour https://developers.google.com/chrome/whitepapers/prerender https://developers.google.com/chrome/whitepapers/prerender
- emmelaich 14y agoIs there a privacy vulnerability with prefetching? I can imagine timing it and making inferences about whether it's been cached and therefore previously visited.
- evan_ 14y agoI 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.
- eli 14y agoPossibly true, but I'm pretty sure you can already do that with something like <img onload="someJavascript()">