SXA Themes Optimizations helps increase Sitecore SXA site performance and its resulting Google Lighthouse (PageSpeed Insights) performance scores. This plugin adds functionality on top of SXA to further optimize front-end JavaScript/CSS files for better compatibility with the SXA CLI and Creative Exchange.
SXA Themes Optimizations optimizes SXA themes by:
- Bundling all JavaScript files used by an SXA site into one file.
- Rendering the newly bundled JavaScript file at the top of the HTML DOM instead of at the bottom of the HTML DOM.
- Rendering the newly bundled JavaScript file asynchronously instead of synchronously.
- Preloading the CSS files so that they are no longer a render blocking resource.