Code splitting with Curi routes is done using a
resolve function. The code splitting guide covers the basic principles for how to do this. This example provides you with code that actually implements what is explained there.
If you want to run this code locally, the source code is available on GitHub.