Open humitos opened 1 year ago
Code splitting is a good first step, and making a bundle for jQuery. There is configuration in site-community and ext-theme for setting jQuery as an external library and moving it to a separate file using the webpack common chunks feature. From there, lazy loading is possible and a good next step to reducing load time.
I'd put all of this on a later revision though, we don't need optimizations just yet.
I un-bundled the EthicalAd client in https://github.com/readthedocs/addons/pull/104 for now. This, besides other benefits, also helps to reduce the file size. The main benefit is on commercial since we don't have ads there.
After adding support for #2, I started getting this warning.