Skip to content

Commit

Permalink
minor #20491 [WebLink] Avoid installation repetition (MrYamous)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
javiereguiluz committed Dec 26, 2024
2 parents 301b89e + 7eff479 commit b3ed2cb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions web_link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@ make one request for the HTML page and another request for the linked CSS file.
However, thanks to HTTP/2 your application can start sending the CSS file
contents even before browsers request them.

To do that, first install the WebLink component:

.. code-block:: terminal
$ composer require symfony/web-link
Now, update the template to use the ``preload()`` Twig function provided by
You can update the template to use the ``preload()`` Twig function provided by
WebLink. The `"as" attribute`_ is mandatory because browsers need it to apply
correct prioritization and the content security policy:

Expand Down

0 comments on commit b3ed2cb

Please sign in to comment.