Solved
How to add async/defer attribute to the clientlib js/css
Hi AEM guru,
To improve our AEM page performance, we are trying to implement async/defer for our client lib js and css but it is not working.
This is our inclusion tag
<sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.all @ categories='abc.base'}"/>
i tried
<sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.all @ categories='abc.base' , option='async'}"/> - this didnt worked
then tried
<sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.all @ categories='abc.base' async=true}"/>. - This also didnt worked.
Any help is appreciated . Thanks in advance.