How to only bundle the authored components clientLibs rather all mentioned in embed

Avatar

Avatar

Kailash07

Avatar

Kailash07

Kailash07

07-11-2020

Hello All

I am new to AEM world so excuse me for semantics. 

We are having page performance issue reported by LH specifically for mobile strategy. One of the reason we found that bundled clientLibs are having extra JS of components which are even not present on the page ie not authored. We have component specific clientLibs so our component which represents a page is embed with list of all possible configurable components clientLibs. Now content author are configuring only subset from all mentioned components but when page is rendered it bundles the Js of all mentioned clientLibs. Is there out of box option to restrict bundling only authored components for that page ? We are just exploring the options to achieve this, Please help us to explore in right direction. Can this be achieved either by :

1) Extending the Html library manager

2) Hook-up page publish work-flow

 

Thanks in advance

Kailash

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

16-11-2020

Hi @Kailash07 

Check out the below article, might help. Came across this as @kautuk_sahni liked it in LinkedIn 🙂

https://www.initialyze.com/blog/2020/11/how-to-use-dynamic-imports-with-adobe-aem/

 

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

10-11-2020

@kautuk_sahni  Please move the query to core.