sirko-io / engine

Benefit from new browsers' technologies to speed up your site
GNU General Public License v3.0
43 stars 3 forks source link

Add support of a confidence threshold #32

Closed dnesteryuk closed 7 years ago

dnesteryuk commented 7 years ago

The prerendering means the additional load on the backend of a site. Hence, customers of the engine may like an idea of adding a hint for the browsers only if there is high confidence that the current user visits the predicted page.

For example, the engine sees the following pages which might be visited by the current user:

Path Confidence
/about 10%
/projects 30%
/blog 20%
/video 20%
/contact 20%

If the confidence threshold is 20%, the projects page gets preredered, but when the config value is 50%, nothing gets prerendered.

Doing this way, customers can get rid of the harmful load.

dnesteryuk commented 7 years ago

Got implemented