Guess.js - a toolkit for enabling data-driven user-experiences on the web  ↦

Our goal with Guess.js is to minimize your bundle layout configuration, make it data-driven, and much more accurate! In the end, you should lazy load all your routes and Guess.js will figure out which bundles to be combined together and what pre-fetching mechanism to be used! All this in less than 5 minutes setup time.

That’s an excellent goal! But how will that work?

During the build process, the GuessPlugin will fetch report from Google Analytics, build a model used for predictive pre-fetching and add a small runtime to the main bundle of your application. On route change, the runtime will query the generated model for the pages that are likely to be visited next and pre-fetch the associated with them JavaScript bundles.

The tool was announced at Google I/O back in May, but as of today it’s still in alpha.


Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00