DNN client Ressource management

Feb 20, 2015 at 7:54 PM
Is there a way to call the DNN client Ressource management within a razor script? I want to prevent adding the same CSS or JavaScript file multiple times when I reuse the same template on a page again.
Otherwise I need to put these references into a skin or into a content less Item, which would violate the idea behind 2sxc content.
Thanks, Stefan
Feb 23, 2015 at 9:54 AM
Feb 23, 2015 at 7:09 PM
Thank you Daniel, that is indeed easy.
I even saw the data-EnableOptimizations attributes in some examples before, but I wasn't able to link it to the Client Resource Management API.