Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c32e885

Browse filesBrowse files
committed
[WebLink] Hint that prerender is deprecated
1 parent cff3525 commit c32e885
Copy full SHA for c32e885

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎web_link.rst

Copy file name to clipboardExpand all lines: web_link.rst
+3-1Lines changed: 3 additions & 1 deletion
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+
.. _`Speculation Rules API`: https://developer.mozilla.org/docs/Web/API/Speculation_Rules_API

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.