Hi,
Working on Optimize AEM Site Performance
I need to add CSS Preload attributes in the link tag which is added by sightly.
For ex:
<sly
data-sly-use.resolver="${'com.myProject.use.ClientlibResolverUse' @ category='myProject.collections.head', mode='js'}">
<link rel="preload" href="${ resolver.getVersionedPath @context='uri' }" as="script">
</sly>
In above case I have the link file on "headlibs.html" file but in below case how I can add ?
<sly data-sly-call="${clientLib.css @ categories='myProject.global'}"></sly>
<sly data-sly-list.libtouse="${footlibs.clientLibsToAdd}">
<sly data-sly-call="${clientLib.css @ categories=libtouse}"></sly>
</sly>
In this case, the CSS link file will add when our page will render.
For above case what will be the best approach to add rel="preload" attribute.