nateyolles / aem-clientlib-async

Create AEM clientlibs that can output 'async', 'defer' and 'onload' attributes on your HTML script elements.
http://www.nateyolles.com/blog/2016/06/custom-aem-html5-async-clientlibs
Apache License 2.0
49 stars 23 forks source link

can you please help how to install this package via crxde #11

Open pkhand0 opened 3 years ago

pkhand0 commented 3 years ago

Hi,

We want to implement the asyc, defer for our clientlib js /css Here is our code - <sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ categories='abc.base'}"/>

pkhand0 commented 3 years ago

downloaded the zip and tried to install it is giving attach error. ![Uploading Screen Shot 2021-07-02 at 9.24.35 PM.png…]()

pkhand0 commented 3 years ago

we are able to install the package.

Can you please let us know how to implement async in this tag

<sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.all @ categories=['abc.base']} "/>

jamesg1 commented 3 years ago

You can also just put these files within your app jcr_root aem code and it will work.