You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug <link rel="preload"> only instruct the browser to preload the asset, but it does not instruct it to apply it.
See: MDN example
There should be 2 HTML link tags if you want to use HTML for preload.
Using symfony/web-link and preload twig function the Link header is added to the response HTTP headers.
Describe the bug
<link rel="preload">
only instruct the browser to preload the asset, but it does not instruct it to apply it.See: MDN example
There should be 2 HTML link tags if you want to use HTML for preload.
Using
symfony/web-link
andpreload
twig function the Link header is added to the response HTTP headers.To Reproduce
Add CSS assets with preload.
(OPTIONAL) Additional context
Generated HTML:
Response header contains preload link as well (if the preload twig function is callable).
Link: </custom.css>; rel="preload"; as="style"
Possible solution
If
preload
twig function is available:If
preload
is not available we need 2 link tags:The text was updated successfully, but these errors were encountered: