Skip to content

Commit

Permalink
docs: eagerness setting
Browse files Browse the repository at this point in the history
  • Loading branch information
BrocksiNet authored and Isengo1989 committed Dec 18, 2024
1 parent 67aa439 commit 1244717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/hosting/performance/performance-tweaks.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,13 @@ To disable the Product Stream Indexer, you can set the following configuration:
This feature is available starting with Shopware 6.6.10.0
:::

The Speculation Rules API allows browsers to pre-render pages based on user interactions or immediately, depending on the eagerness mode.
The Speculation Rules API allows browsers to pre-render pages based on user interactions or immediately, depending on the eagerness setting.
This can improve the perceived performance of a website by loading pages in the background before the user navigates to them.

You can enable that **experimental feature** via `Admin > Settings > System > Storefront`. The JavaScript Plugin will then
check if the [Browser supports the Speculation Rules API](https://caniuse.com/mdn-http_headers_speculation-rules) and if so,
it will add a script tag to the head of the document. For the [eagerness option](https://developer.chrome.com/docs/web-platform/prerender-pages#eagerness)
we are using `moderate` everywhere. That means a user must interact with a link to execute the pre-rendering.
it will add a script tag to the head of the document. For the [eagerness setting](https://developer.chrome.com/docs/web-platform/prerender-pages#eagerness)
we are using `moderate` everywhere. That means **a user must interact** with a link to execute the pre-rendering.

::: info
Keep in mind that pre-rendering puts extra load on your server and also can affect your [Analytics](https://developer.chrome.com/docs/web-platform/prerender-pages#impact-on-analytics).
Expand Down

0 comments on commit 1244717

Please sign in to comment.