In DevTools turn on "Preserve log" and watch the console for the pagehide
, pageswap
, visibilitychange
, and unload
events when navigating among the following pages.
In Chrome 126.0.6478.222 I am not seeing any of these events being logged when navigating between pages which have been speculatively prerendered.
When using prefetch
instead of prerender
then these events are logged as expected, same as when speculation rules are absent altogether.
Nevertheless, these events are firing in all cases as can be seen in localStorage
, but the console does not show logs for these events when navigating to a prerendered page.
Pages with prerender
speculation rules:
Pages without speculation rules: