@@ -5,10 +5,10 @@ Symfony provides native support (via the :doc:`WebLink component </components/we
5
5
for managing ``Link `` HTTP headers, which are the key to improve the application
6
6
performance when using HTTP/2 and preloading capabilities of modern web browsers.
7
7
8
- ``Link `` headers are used in `HTTP/2 Server Push `_ and W3C's `Resource Hints `_
9
- to push resources (e.g. CSS and JavaScript files) to clients before they even
10
- know that they need them. WebLink also enables other optimizations that work
11
- with HTTP 1.x:
8
+ ``Link `` headers are used in `HTTP/2 Server Push `_ and W3C's `Resource Hints
9
+ <https://www.w3.org/TR/resource-hints/> `_ to push resources (e.g. CSS and
10
+ JavaScript files) to clients before they even know that they need them.
11
+ WebLink also enables other optimizations that work with HTTP 1.x:
12
12
13
13
* Asking the browser to fetch or to render another web page in the background;
14
14
* Making early DNS lookups, TCP handshakes or TLS negotiations.
@@ -50,7 +50,7 @@ To do that, first install the WebLink component:
50
50
51
51
.. code-block :: terminal
52
52
53
- $ composer req weblink
53
+ $ composer req web-link
54
54
55
55
Now, update the template to use the ``preload() `` Twig function provided by
56
56
WebLink:
@@ -161,7 +161,6 @@ You can also add links to the HTTP response directly from controllers and servic
161
161
without requiring the entire Symfony framework.
162
162
163
163
.. _`HTTP/2 Server Push` : https://tools.ietf.org/html/rfc7540#section-8.2
164
- .. _`Resource Hints` : https://www.w3.org/TR/resource-hints/
165
164
.. _`Docker installer and runtime for Symfony` : https://github.com/dunglas/symfony-docker
166
165
.. _`preload` : https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
167
166
.. _`the Preload specification` : https://www.w3.org/TR/preload/#server-push-(http/2)
0 commit comments