Angular minified javascript is not loading all code | Community
Skip to main content
Shivamurthy_MN
March 12, 2019
Solved

Angular minified javascript is not loading all code

  • March 12, 2019
  • 2 replies
  • 1603 views

Hello community,

I am trying to move the clientlibs from etc to apps.

Earlier approach to call the clientlibs was direct script injection in the component like

<script type="text/javascript" src="/etc/clientlibs/my-project/component/mycomponent/jslibs.js"></script>.

all was working fine.

After I moved the clientlibs under apps and make a sly call js loads like

etc.clientlibs/my-project/clientlibs/my-project/component/mycomponent.min.ACSHASH24436eac1f3c5be6401c52f956a34f99.js

But this will not get all the script in it. This is the problem.

Meanwhile if i make a script reference to the new location it works fine.

What could be the issue?

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 VeenaVikraman

Can u validate if your JS is minified properly.? The default engine is YUI which is not compatible with latest UI technologies. So make sure your minification is done via GCC . PF link here https://helpx.adobe.com/in/experience-manager/kb/how-to-change-the-minification-engine-for-client-libraries-in-AEM.html

Change the minification engine for client libraries in AEM

2 replies

Gaurav-Behl
March 12, 2019

Did you add "allowProxy" as true on the clientlibs?

allowProxyBooleantrueexposes CSS/JS via /etc.clientlibs

check  - allowProxy feature in Clientlibs in AEM 6.3 - YouTube

Getting Started with AEM Sites Chapter 3 - Client-Side Libraries and Responsive Grid

VeenaVikraman
Community Advisor
VeenaVikramanCommunity AdvisorAccepted solution
Community Advisor
March 12, 2019

Can u validate if your JS is minified properly.? The default engine is YUI which is not compatible with latest UI technologies. So make sure your minification is done via GCC . PF link here https://helpx.adobe.com/in/experience-manager/kb/how-to-change-the-minification-engine-for-client-libraries-in-AEM.html

Change the minification engine for client libraries in AEM