Additional 'default' clientlib/scripts being included. How do I remove them? | Community
Skip to main content
blkhatpersian
New Participant
March 2, 2016
Solved

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

  • March 2, 2016
  • 3 replies
  • 992 views

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>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

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

3 replies

blkhatpersian
New Participant
March 4, 2016

Will use that from now on, thanks!

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
March 3, 2016

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

blkhatpersian
New Participant
March 2, 2016

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?