We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b223d4 + 29d1b38 commit 051178eCopy full SHA for 051178e
web_link.rst
@@ -69,6 +69,17 @@ If you reload the page, the perceived performance will improve because the
69
server responded with both the HTML page and the CSS file when the browser only
70
requested the HTML page.
71
72
+.. note::
73
+
74
+ You can preload an asset by wrapping it with the ``preload()`` function:
75
76
+ .. code-block:: html+twig
77
78
+ <head>
79
+ <!-- ... -->
80
+ <link rel="stylesheet" href="{{ preload(asset('build/app.css')) }}">
81
+ </head>
82
83
Additionally, according to `the Priority Hints specification`_, you can signal
84
the priority of the resource to download using the ``importance`` attribute:
85
0 commit comments