Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Additional 'default' clientlib/scripts being included. How do I remove them?

Avatar

Level 3

Hi guys,

I am seeing additional default scripts and styles being added to my page despite my custom clientlib having no dependencies or embedding. The only files that should be there are dashboard.css and dashboard.js. Any help appreciated, thanks!



Here is the code for my jsp page:

 

<%@include file="/libs/foundation/global.jsp" %> <!DOCTYPE html> <html ng-app="app"> <head> <cq:includeClientLib categories="dashboard"/> <style> /* This helps the ng-show/ng-hide animations start at the right place. */ /* Since Angular has this but needs to load, this gives us the class early. */ .ng-hide { display: none!important; } </style> <title ng-bind="title">aos-dashboard</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> <link rel="icon" type="image/png" href="<%=currentDesign.getPath()%>/dashboard/img/favicon/hotwater.ico"> <base href="https://forums.adobe.com/"> </head> <body> <div ng-include="'app/layout/shell.html'"></div> </body> </html>
1 Accepted Solution

Avatar

Correct answer by
Level 10

Yes, there is a clientlibrary with the name 'dashboard' OOB and hence you see all of them included.

Use this link [1] to check if the clientlibs exists or not which will be helpful

http://<host:<port>/libs/granite/ui/content/dumplibs.test.html?categories=dashboard

View solution in original post

3 Replies

Avatar

Level 3

And I just potentially solved the issue by changing the clientlib name to "somelibrary". Those libraries are all removed. Is dashboard already an exisitng clientlibrary category?

Avatar

Correct answer by
Level 10

Yes, there is a clientlibrary with the name 'dashboard' OOB and hence you see all of them included.

Use this link [1] to check if the clientlibs exists or not which will be helpful

http://<host:<port>/libs/granite/ui/content/dumplibs.test.html?categories=dashboard