Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Experience with jsProcessor/cssProcessor

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

Also look at this forum thread:

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// 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

View solution in original post

3 Replies

Avatar

Correct answer by
Administrator

Hi 

Also look at this forum thread:

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// 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

Avatar

Level 2

Hi kautuksahni​,

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

Regards,

Prahlad

Avatar

Administrator

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



Kautuk Sahni