Open abvdveen opened 11 months ago
standalone="1"
plus external="1"
should work for you. Standalone asset settings must only be applied if an asset is standalone, otherwise it would also potentially apply to a merged chunk of assets leading to unpredictable results.
Unfortunately I cannot use that combination in this case: I need to generate the contents of the
Async and defer attributes now can only be added when also adding standalone="true". This doesn't work: using standalone="true" will generate inline js. Adding defer="defer" or async="async" to inline js is useless, as there is nothing to fetch. These params influence when external js is fetched, so only works when the 'src' param is present in the script tag.
Changing AssetService as follows fixes this:
to
$assetSettings = $extractedAssetSettings;
and
to