Dynamic Imports with Adobe AEM & Webpack
Performance of AEM based sites can be greatly improved by leveraging Dynamic Imports using Webpack. Sites built with AEM use components to compose a page. As a best practice, developers should generally split their code at the component level and use clientlibrary feature to combine and minify their JavaScript files with AEM. But often there are scenarios where specific components are only used on certain areas of the site or on specific pages and it doesn’t make sense to combine their JavaScript modules into a single bundle.
The below video show’s a demo of how dynamic import with AEM Components would work
Author: Tushar Mane
AEM News Newsletter
Join the newsletter to receive the latest updates in your inbox.
Comments
Sign in or become a AEM News member to join the conversation.
Just enter your email below to get a log in link.