Hello Community - I am loading the clientlib based on wcmmode. For some reason it is not working as expected.
If I access the page in edit mode, it should load only the categoryA clientlib not categoryB but I could see categoryB is also loading when I check the network calls.
is there any issue with the below snippet? Can someone tell me how can we restrict the loading of the clientlib?
----------------
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" />
<sly data-sly-test.editor="${wcmmode.edit || wcmmode.design}">
<sly data-sly-call="${clientlib.css @ categories=’categoryA’}”/>
</sly>
<sly data-sly-test="${!editor}">
<sly data-sly-call="${clientlib.css @ categories=’categoryB’}” />
</sly>