Dynamic Client Libraries generation specific to page
In general AEM development we will try to include all components client libs into one client lib (using client libs embed property).
With this approach we are loading all the css/js where components on a particular page may not be using all that css/js as we might have dragged and dropped few components on to that page. With this approach we are getting reports from Google stating we have unused java script/css on the page.
Ex -
We have 50 components, we will load all 50 components java script/css in one client lib and load that onto a page.
On any specific page we may not be using all those 50 components, we might be using 10 or 15 components. Remaining component's Java script/CSS is un used on this page.
Do we have any way we can generate client libs dynamically only for those components used/dragged and dropped onto a page and include. This way we can solve the unused java script/css problem reported by google on the page/site.