Bird
0
0

What will happen if you set preloadingStrategy: NoPreloading in your Angular router config?

medium📝 Predict Output Q5 of 15
Angular - Performance Optimization
What will happen if you set preloadingStrategy: NoPreloading in your Angular router config?
AOnly modules with data property preload.
BNo lazy modules preload; they load only when navigated to.
CAll lazy modules preload immediately after startup.
DModules preload based on custom logic.
Step-by-Step Solution
Solution:
  1. Step 1: Understand NoPreloading strategy

    NoPreloading disables preloading; lazy modules load only on demand.
  2. Step 2: Confirm behavior

    Modules will not preload in background but load when user navigates to their routes.
  3. Final Answer:

    No lazy modules preload; they load only when navigated to. -> Option B
  4. Quick Check:

    NoPreloading = Load on demand only [OK]
Quick Trick: NoPreloading disables background loading of lazy modules [OK]
Common Mistakes:
  • Assuming NoPreloading preloads some modules
  • Confusing with custom preloading
  • Thinking it preloads modules with data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes