Load custom clientlibrary on top of the page which should be configurable
We have few custom clientlibraries which are being loaded at page level through page component. For eg.
<sly data-sly-call="${customClientlib.css @ categories='initial.chunk-category', mode='css', loading ='preload'}"/>
<sly data-sly-call="${clientlib.css @ categories='initial.chunk-category'}"/>
Apart from these, there are other clientlibraries which are added at template level through page policy. These are loaded after "initial.chunk-category" gets loaded on the page.
We have a requirement, where a category can be loaded before "initial.chunk-category" if needed, and that should configurable, either through page policy, page properties or any other way?
Is there a way through which this can be achieved?