Experience with jsProcessor/cssProcessor | Community
Skip to main content
gruberroland_ne
March 9, 2017
Solved

Experience with jsProcessor/cssProcessor

  • March 9, 2017
  • 3 replies
  • 2157 views

Hi all,

with AEM 6.2 YUI compressor can be replaced with Google Closure Compiler (GCC). Do you have any experience with this?

  • Performance
  • JS statements that were compatible with YUI but not with GCC
  • improvements in compression ratio

Thanks.

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 kautuk_sahni

Hi 

Also look at this forum thread:

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__ib39-when_minifyingjavas.html

// This talks about "How can I change the default compressor library from YUI".

    Here one of the community member has given custom approach to achieve this.    

    1) Create a custom tag <new-tags:marks-tag name="custom-clientlibs" />

    2) Create a service that will be invoked by this tag

    3) Inside the service invoke a search for that particlular clientlibs by it's name

    4) Read the content file and copy the files from the jcr in correct order to one big file and save it in memory

    5) Push memory into some local file and run Uglify on it

    6) Upload your newly generated file into the jcr clientlibs folder

    7) Write the location of your compacted file in the jsp

    Impl may vary depending on your CQ clientlibs usage.

I hope this would help you.

~kautuk

3 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
March 10, 2017

Hi 

Also look at this forum thread:

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__ib39-when_minifyingjavas.html

// This talks about "How can I change the default compressor library from YUI".

    Here one of the community member has given custom approach to achieve this.    

    1) Create a custom tag <new-tags:marks-tag name="custom-clientlibs" />

    2) Create a service that will be invoked by this tag

    3) Inside the service invoke a search for that particlular clientlibs by it's name

    4) Read the content file and copy the files from the jcr in correct order to one big file and save it in memory

    5) Push memory into some local file and run Uglify on it

    6) Upload your newly generated file into the jcr clientlibs folder

    7) Write the location of your compacted file in the jsp

    Impl may vary depending on your CQ clientlibs usage.

I hope this would help you.

~kautuk

Kautuk Sahni
Prahlad
Level 2
November 12, 2019

Hi kautuksahni​,

The link in this article doesnot work. Can you post correct link?

Regards,

Prahlad

kautuk_sahni
Community Manager
Community Manager
November 13, 2019

It is really old thread. And I am afraid if I can pull this up again.

Kautuk Sahni