A <script type="speculationrules"> in the layout prerenders same-origin
links with eagerness "moderate" (hover or press). Excluded:
- cart, checkout, account, login, logout, wishlist, contact and the
future /islands, plus the admin (/boboko) and /stoic
- rel~=nofollow and [data-no-prerender]
- listing controls that load into a Turbo Frame (sort, filters,
pagination): links inside a <turbo-frame> or pointing at one, unless
they break out with data-turbo-frame="_top" like the product cards
Contact is excluded too, though the task didn't list it: it's a session
page with hCaptcha.
GA4 and a consent banner aren't in this repo, so no page-view delay on
document.prerendering is needed yet. Add one when they're added.
Watch production FPM after this deploy: until pages are cached, every
prerender is a full PHP render, and there are only 8 FPM workers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>