Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite2c3021

Browse files
committed
Minor reword
1 parent5df84ca commite2c3021

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)

[8]ページ先頭

©2009-2025 Movatter.jp