How embed happening in Html library Manger?

Avatar

Avatar
Ignite 1
Level 2
vasgurug
Level 2

Likes

3 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 3
Boost 1
View profile

Avatar
Ignite 1
Level 2
vasgurug
Level 2

Likes

3 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 3
Boost 1
View profile
vasgurug
Level 2

23-07-2020

Hi,

 

As and when we include multiple categories(a.css and b.css) in the embed property as cq:clientLibraryFolder. node how Html library Manager working/ Which method basically concating these categories programmatically on page load? any idea would help? we are getting the required categories but not able to combine? Is there any way to combine the use Html library Manager API method?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

272 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

272 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile
ChitraMadan
MVP

23-07-2020

Hi @vasgurug ,

What I have understood from your question is that your are trying to use HTML Library Manager to combine different clientlibs.

 

However, may be you can try to embed different clientlib categories to combine them into 1 and then can use HTML Library Manager for minification and compression.

This blog explains very well how you can embed different categories and then enable minification.

https://blogs.adobe.com/experiencedelivers/experience-management/clientlibs-explained-example/

Note:

  • Embed property is NOT transitive – If Clientlib A embed B and B embed C, then only A and B will be included in the page,but C won't. In order to include Clientlib C, it must be added to the embed property of A as well.
  • The order of embed is important for the CSS and JS to work properly.

You can use this tool as well https://adobe-consulting-services.github.io/acs-aem-tools/features/clientlibs-optimizer/index.html

Hope this helps!!

Thanks

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

23-07-2020

What exactly is the ask @vasgurug ? Are you facing any issue with Embed in ClientLibs ? Could you please elaborate little on your issue ?

 

Thanks

Veena

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
berliant
Employee

23-07-2020

Have you reviewed https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/in...

writeJsInclude(), writeCssInclude() etc menthods?