Using angular / angular2-seed , I defined a bunch of routes. However, I have a problem where each route loads lazily, causing white flicker and delay (and each time it loads a route, it jumps to the top of the page every time) ... the thing that we left off when loading html old-style files .
Here is my route configuration:
@RouteConfig([ {path: '/about', component: About, name: 'About', useAsDefault: true}, {path: '/features', component: Features, name: 'Features'}, {path: '/examples', component: Examples, name: 'Examples'}, {path: '/download', component: Download, name: 'Download'}, {path: '/contact', component: Contact, name: 'Contact'} ])
Is there a way to preload these routes?
source share