Skip to content

[AssetMapper] Automatically preload CSS files if WebLink available #19021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/asset_mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,14 @@ same way::
live in your ``importmap.php`` file, so their preload setting is handled
explicitly in that file.

For used CSS files, a "preload" tag will automatically be rendered onto your page
when the :doc:`WebLink Component </web_link>` is available.

.. versionadded:: 6.4

Automatic preloading of CSS files when WebLink is available was
introduced in Symfony 6.4.

Frequently Asked Questions
--------------------------

Expand Down