Currently, I am in the process of transitioning my webshop, which contains numerous products, to an Angular SPA application using ngRoute and HTML5 mode. I have come up with a method where I receive some of my routes from the server as a JSON object, but scaling this up to 127,630 pages in the product catalog seems impractical due to the massive JSON file it would create.
How do you suggest solving this issue? Is it possible to pre-load the route configuration with common pages like support and checkout, and then dynamically load additional routes using AJAX whenever a route change that is not pre-configured is encountered?