Closed (fixed)
Project:
Aggregation JS CSS async defer
Version:
1.1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2024 at 12:35 UTC
Updated:
24 Nov 2026 at 18:45 UTC
Jump to comment: Most recent
Comments
Comment #2
aaronsansal commentedYes, as you said, the async/defer is just for script tag. The option attribute to CSS link tag could be rel="preload".
Comment #3
aaronsansal commentedYou're right, async/defer only exist for scripts. Fixed in 1.1.0 (commit 964cbc4).
The CSS option is now "Preload (non render-blocking)": stylesheets are rendered as
<link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">with a<noscript>fallback, and the module no longer adds async/defer attributes to<link>. The update hook resets the previous CSS async/defer setting to "None", since it never had any effect.Comment #5
aaronsansal commented