Problem: If you lazy load routes, React Router's loaders won't run until...
Problem:
If you lazy load routes, React Router's loaders won't run until after the lazy route downloads and parses.
Solution:
1. Add a "lazy" property on the route.
2. Declare a static loader on the route.
Result:
The route's loader and the lazy component load in parallel. 👍

Here's the full blog post: https://remix.run/blog/lazy-loading-routes