Digital Engine note · Saved from Facebook

Guess.js: Use data to predict the next page and then decide whether to prefetch it

A historical note discussing prefetch, user behavior data and machine learning together. The key point is that prefetching should be based on a balance between probability and cost.

Source note

This note preserves the original context of the Facebook post. Some tools, interfaces, and external links may have changed.

View the original posthttps://www.facebook.com/searchenginecommunity/posts/pfbid045x29mfcfqKmWSShS2kZWT279V2SCDSF4aioNdasPnB8rvpFFf1VewPfFfeCrsAMl
Guess.js’ Facebook post with image 1 Guess.js’ Facebook post with image 2 Guess.js’ Facebook post with image 3

If all possible next pages are prefetched, it can theoretically make the post-click experience faster, but it will also consume a lot of user network traffic.

The real question worth discussing is how to determine which pages are most likely to be visited next.

The original post suggested two directions.

The first is for developers to determine the pages that users are most likely to go to, and then prefetch those resources.

The second is to use the website’s usage behavior data to infer the probability that links on different pages are clicked.

Guess.js has been used to demonstrate the second approach.

It combines Google Analytics data to analyze the likelihood of links on the page being clicked, and then places prefetch on links that are more likely to be visited.

The point of this idea is not to “add more prefetch, the better”, but to consider the prefetch cost, bandwidth and the path that the user will actually take.

This post was published in 2019, and related tools and examples may have changed or ceased maintenance.

Therefore, this page preserves the design ideas and research context at that time, and does not guarantee that the tools in the link are still suitable for direct use.

Keep exploring

Related reading

Article

Three core indicators of website experience - LCP, FID, CLS

Website experience indicators (Web Vitals) were proposed by Google in May 2020, with the aim of developing a set of UX measurement indicators suitable for all websites. This article introduces this project and various measurement methods.

Article

SEO e-Newsletter Issue 41 – 2021.09.16~2021.09.30

This newsletter has three contents that I like very much - the second one is Screaming Frog’s update, which allows users to automatically monitor the SEO of websites with a small budget; the third one is about content pruning, which is a relatively rare optimization direction, and it is quite rare to see how large websites do it; and the fourth one is 103 Early Hints, which is new to me, and it also gives me a good topic to talk to engineers about!