Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48986

How to preload modules only if run on device?

$
0
0

How to use preload all strategy on device and nopreload on browser?
we can load all module like this:

imports: [
    CommonModule,
    RouterModule.forRoot(appRoutes, { preloadingStrategy: PreloadAllModules }),
    ...
  ],

This will preload all module in any platform,
But i want to prevent preload when running in browser. And only preload on device.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48986

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>