Open webpaul85 opened 6 years ago
There is jsOptions
property in config.
'assetsAutoCompress' => [
'class' => '\skeeks\yii2\assetsAuto\AssetsAutoCompressComponent',
'jsCompress' => true,
'jsCompressFlaggedComments' => true,
'jsOptions' => [
'async' => 'async',
],
],
In my AssetBundle I can set the "async" attribute for javascript tag adding:
But when the javascript is compressed, the async attribute disappear. Is it possible to keep it (or to set it somewhere else?).
Thanks