Skip to content

Commit e2c3021

Browse files
committed
Minor reword
1 parent 5df84ca commit e2c3021

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web_link.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ To do that, first install the WebLink component:
5555
$ composer require symfony/web-link
5656
5757
Now, update the template to use the ``preload()`` Twig function provided by
58-
WebLink:
58+
WebLink. The `"as" attribute`_ is mandatory because browsers need it to apply
59+
correct prioritization and the content security policy:
5960

6061
.. code-block:: html+twig
6162

@@ -174,6 +175,7 @@ You can also add links to the HTTP response directly from controllers and servic
174175
.. _`Resource Hints`: https://www.w3.org/TR/resource-hints/
175176
.. _`Docker installer and runtime for Symfony`: https://github.com/dunglas/symfony-docker
176177
.. _`preload`: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
178+
.. _`"as" attribute`: https://w3c.github.io/preload/#as-attribute
177179
.. _`the Priority Hints specification`: https://wicg.github.io/priority-hints/
178180
.. _`the Preload specification`: https://www.w3.org/TR/preload/#server-push-(http/2)
179181
.. _`Cloudflare`: https://blog.cloudflare.com/announcing-support-for-http-2-server-push-2/

0 commit comments

Comments
 (0)