From 2b0cabbc96a12856cb021fc1c7de29e1899ec2b4 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sun, 15 Oct 2023 18:17:13 +0200 Subject: [PATCH] [AssetMapper] Automatically preload CSS files if WebLink available --- frontend/asset_mapper.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index cb72e5e2460..5048c00c42e 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -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 ` is available. + +.. versionadded:: 6.4 + + Automatic preloading of CSS files when WebLink is available was + introduced in Symfony 6.4. + Frequently Asked Questions --------------------------