Skip to content

[WebLink] Hint that prerender is deprecated #20968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion web_link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ The WebLink component provides the following Twig functions to send those hints:
* ``prefetch()``: "identifies a resource that might be required by the next
navigation, and that the user agent *should* fetch, such that the user agent
can deliver a faster response once the resource is requested in the future".
* ``prerender()``: "identifies a resource that might be required by the next
* ``prerender()``: " **deprecated** and superseded by the `Speculation Rules API`_,
identifies a resource that might be required by the next
navigation, and that the user agent *should* fetch and execute, such that the
user agent can deliver a faster response once the resource is requested later".

Expand Down Expand Up @@ -206,3 +207,4 @@ You can also add links to the HTTP response directly from controllers and servic
.. _`Akamai`: https://http2.akamai.com/
.. _`link defined in the HTML specification`: https://html.spec.whatwg.org/dev/links.html#linkTypes
.. _`PSR-13`: https://www.php-fig.org/psr/psr-13/
.. _`Speculation Rules API`: https://developer.mozilla.org/docs/Web/API/Speculation_Rules_API