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

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


Level 1

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



4 Replies


Level 1
@Anudeep_Garnepudi. I just gone through the article and found the archType used is the different one where we don't have ui.frontend as submodule so first we have to opt this archType to go ahead. Do you guys foresee performance overheads of extending the HTMLLibraryManager and then identifying what are components are there on the page so load specific clientLibs only ? Thanks Kailash