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.
Discussion
Sign in or Join to comment or subscribe
Jerod Santo
Bennington, Nebraska
Jerod co-hosts The Changelog, crashes JS Party & takes out the trash (his old code) once in awhile.
2018-11-14T18:35:10Z ago
Tip o’ the 🎩 to [@mrbenj](https://twitter.com/@MrBenJ5) for sharing this with us in #jsparty.