Clientlib javascript import with async or defer
Hi,
I am working on a project that needs to write the async or defer attributes to the JS import.
Basically, the resulting HTML should be something like this:
<link rel="stylesheet" href="/etc/clientlibs/my-site/all.css" async>
Notice the "async" word/attribute in the end of link tag above. It should be possible to use "defer" too.
I have found a library that can do this at Github (nateyolles/aem-clientlib-async), but unfortunately this code is not compatible with the latest AEM version and it also breaks the ACS Commons feature of Versioned Clientlibs.
Anyone has any idea?
Thanks