Re:Designing very large JavaScript applications
by djhalon on Friday April 20, 2018 @07:17PM
(#16889081)
There are different ways to do it based on the transpiler you use. With Webpack and dynamic imports, you could create a custom loader around the promises returned by the Webpack generation.
For React, you can use React Loadable (https://github.com/jamiebuilds/react-loadable) that provides a Higher Order Component and Server Side rendering.