Skip to content

Add "defer" attribute to injected scripts #614

Answered by LukeTowers
RoKrypto asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to use the system.assets.beforeAddAsset event to do that: https://wintercms.com/docs/events/event/system.assets.beforeAddAsset

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@RoKrypto
Comment options

@LukeTowers
Comment options

@RoKrypto
Comment options

@LukeTowers
Comment options

@RoKrypto
Comment options

Answer selected by LukeTowers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants