Bird
0
0

You want to reduce your Angular app's bundle size. Which approach helps most according to bundle size analysis?

hard📝 Application Q8 of 15
Angular - Performance Optimization
You want to reduce your Angular app's bundle size. Which approach helps most according to bundle size analysis?
AUse lazy loading to split large modules
BAdd more comments in your code
CIncrease the number of components
DDisable Ahead-of-Time compilation
Step-by-Step Solution
Solution:
  1. Step 1: Identify techniques to reduce bundle size

    Lazy loading splits the app into smaller chunks loaded on demand, reducing initial bundle size.
  2. Step 2: Exclude ineffective methods

    Adding comments does not affect bundle size, more components usually increase size, disabling AOT increases size.
  3. Final Answer:

    Use lazy loading to split large modules -> Option A
  4. Quick Check:

    Reduce bundle size = Lazy loading modules [OK]
Quick Trick: Lazy load big modules to shrink initial bundle size [OK]
Common Mistakes:
  • Thinking comments reduce bundle size
  • Believing more components reduce size
  • Disabling AOT to reduce size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes