Skip to content

Commit 7b8bb8d

Browse files
committed
[WebLink] Hint that prerender is deprecated
1 parent cff3525 commit 7b8bb8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web_link.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ The WebLink component provides the following Twig functions to send those hints:
146146
* ``prefetch()``: "identifies a resource that might be required by the next
147147
navigation, and that the user agent *should* fetch, such that the user agent
148148
can deliver a faster response once the resource is requested in the future".
149-
* ``prerender()``: "identifies a resource that might be required by the next
149+
* ``prerender()``: " **deprecated** and superseded by the `Speculation Rules API`_,
150+
identifies a resource that might be required by the next
150151
navigation, and that the user agent *should* fetch and execute, such that the
151152
user agent can deliver a faster response once the resource is requested later".
152153

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

0 commit comments

Comments
 (0)