From 7eff479d4b62fb1ff5973ef867b3cc1c6b302470 Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Wed, 25 Dec 2024 10:50:23 +0100 Subject: [PATCH] remove installation repetition in weblink --- web_link.rst | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web_link.rst b/web_link.rst index e5ad7e1159c..44e668c2112 100644 --- a/web_link.rst +++ b/web_link.rst @@ -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: