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>
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Will use that from now on, thanks!
Views
Replies
Total Likes