Mobilsökningar i Chrome blir 100-150ms snabbare

Postat:
14:30 - 2014-12-11
Skribent:
| Lars A
Kommentarer:
15

Googlearbetaren Ilya Grigorik förklarar att mobilsökningar i Chrome för Android blivit snabbare, även om det inte rör sig om några enorma hastighetsökningar. Grigorik skriver att hemsidor som visas via sökresultat kommer ladda mellan 100-150 millisekunder fortare i snitt.

Programmerarna använder något de kallar ”reactive prefetch” för att på ett intelligent och intuitivt vis hämta väsentliga resurser när användaren väljer att öppna en sajt från sökresultaten. En tiondels sekund låter kanske som en försumbar ökning, men många bäckar små och genomför du många sökningar i Chrome kan insparade tiden bli relativt stor på sikt.

When you click on one of the search results, the browser begins fetching the destination page… and here’s the trick: we also provide a hint to the browser indicating which other critical resources it should fetch in parallel to speed up rendering of the destination page!

This is a powerful pattern and one that you can use to accelerate your site as well. The key insight is that we are not speculatively prefetching resources and do not incur unnecessary downloads. Instead, we wait for the user to click the link and tell us exactly where they are headed, and once we know that, we tell the browser which other resources it should fetch in parallel – aka, reactive prefetch!