Skip to content

Commit b3ed2cb

Browse files
committed
minor #20491 [WebLink] Avoid installation repetition (MrYamous)
This PR was merged into the 6.4 branch. Discussion ---------- [WebLink] Avoid installation repetition This second installation command on the page sounds a bit repetitive to me Commits ------- 7eff479 remove installation repetition in weblink
2 parents 301b89e + 7eff479 commit b3ed2cb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

web_link.rst

+1-7
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,7 @@ make one request for the HTML page and another request for the linked CSS file.
5555
However, thanks to HTTP/2 your application can start sending the CSS file
5656
contents even before browsers request them.
5757

58-
To do that, first install the WebLink component:
59-
60-
.. code-block:: terminal
61-
62-
$ composer require symfony/web-link
63-
64-
Now, update the template to use the ``preload()`` Twig function provided by
58+
You can update the template to use the ``preload()`` Twig function provided by
6559
WebLink. The `"as" attribute`_ is mandatory because browsers need it to apply
6660
correct prioritization and the content security policy:
6761

0 commit comments

Comments
 (0)