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 b3ed2cb

Browse filesBrowse 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
Copy full SHA for b3ed2cb

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-7
lines changed

‎web_link.rst

Copy file name to clipboardExpand all lines: web_link.rst
+1-7Lines changed: 1 addition & 7 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.