Add "defer" attribute to injected scripts #614
-
Greetings. I have gone through the documentation to check if there's a function that allows me to set the "defer" attribute to all script tags that are injected through |
Beta Was this translation helpful? Give feedback.
Answered by
LukeTowers
Jul 17, 2022
Replies: 1 comment 5 replies
-
You should be able to use the |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
LukeTowers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to use the
system.assets.beforeAddAsset
event to do that: https://wintercms.com/docs/events/event/system.assets.beforeAddAsset