Dump from my answer on SO: https://stackoverflow.com/a/54617885/2649853
I was looking for a solution for this and came here but I couldn't find what I needed:
- Asynchronous imports to only load into the bundle what was needed based on the viewport.
- Capability to serve a different layout if the layout was resized