How Does Predictive prefetching for the Web (Chrome Dev Summit 2019) Work?

Predictive prefetching for the Web is like knowing what your favorite snack is and getting it ready before you ask for it.

Imagine you're playing a game on your tablet, and every time you tap to go to the next level, it takes a moment for the screen to load. That’s because your device has to fetch the new level from somewhere, like going to the kitchen to grab your snack. But what if your device could guess which level you’ll choose next and get it ready in advance? That's what predictive prefetching does.

How It Knows What You Want

Your tablet or phone uses patterns, like when you tap the same button every time, or go to the same place after a level. It learns from your choices and starts predicting what will happen next. If it guesses right, the new level appears instantly, just like your snack being already on the table.

How It Gets Ready

When your device thinks it knows what you'll do next, it downloads that part of the game ahead of time in the background, kind of like putting your snack in a special spot so you can grab it fast. This means when you tap to go to the next level, it's already there, and no waiting is needed.

It’s like having a friend who always knows what you want before you ask!

Take the quiz →

Examples

  1. A user clicks on a link, and the next page loads instantly because the browser guessed it ahead of time.
  2. Your favorite website feels faster now because your browser is reading your mind (a little).
  3. When you type in Google search terms, the browser starts loading possible results even before you hit enter.

Ask a question

See also

Discussion

Recent activity