diff --git a/web_link.rst b/web_link.rst index 4052d753cad..62e0082d5fa 100644 --- a/web_link.rst +++ b/web_link.rst @@ -66,6 +66,17 @@ If you reload the page, the perceived performance will improve because the server responded with both the HTML page and the CSS file when the browser only requested the HTML page. +.. note:: + + You can preload an asset by wrapping it with the ``preload()`` function + + .. code-block:: html+twig + +
+ {# ... #} + + + Additionally, according to `the Priority Hints specification`_, you can signal the priority of the resource to download using the ``importance`` attribute: