Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Prerender and speculation rules API

When a page is prerendered using the speculation rules API, it triggers a page view in Plausible before the page is actually seen by the visitor.

https://developer.chrome.com/docs/web-platform/prerender-pages#:~:text=viewed%2C%20using%20JavaScript.-,Detect%20prerender%20in%20JavaScript,the%20page%20is%20actually%20activated.

It would be nice if Plausible script detected if the page was prerendered and only triggered a view on the prerenderingchange event.

Fyi in the wordpress ecosystem there is an official plugin “Speculative Loading” to activate prerendering.

2 years ago

our script now waits until a prerendered page is actually shown to the visitor before it counts the pageview

5 days ago
Changed the status to
Completed
5 days ago