QuizzesPerformance — Bundles and Core Web Vitals — Concept Check
intermediate
nextjs

Performance — Bundles and Core Web Vitals — Concept Check

Questions on Performance — Bundles and Core Web Vitals. Server components already removed most client JavaScript. What is left is the boundary you drew, the libraries you import, and whether the LCP element is prioritised.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Performance — Bundles and Core Web Vitals — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.Your Next.js app has a slow LCP. The hero image loads late. What should you do?

    • AIncrease the client-side JavaScript
    • BIgnore it, as LCP is not crucial
    • CAdd priority to the hero image
    • DUse a heavier library for image loading
  2. 2.In a Next.js app, you notice a high INP due to heavy re-renders. What is a recommended solution?

    • AUse useTransition for expensive updates
    • BIncrease the client-side JavaScript
    • CAdd more client components
    • DIgnore re-renders, focus on LCP
  3. 3.A page in your app is rarely opened but includes a heavy chart library. How should you optimize it?

    • AKeep it as is for consistency
    • BRemove the chart library entirely
    • CUse dynamic imports with SSR disabled
    • DLoad the library globally
  4. 4.Your app's CLS score is high due to content shifts. What's a common cause?

    • APrefetching enabled by default
    • BToo much client-side JavaScript
    • CImages without dimensions
    • DUsing static routes
  5. 5.A dynamic route in your app is causing slow LCP. What's a potential fix?

    • AIncrease client-side JavaScript
    • BUse a heavier library
    • CDisable prefetching
    • DPrerender the route
  6. 6.What is a key benefit of keeping the client boundary low in a Next.js app?

    • AReduces bundle weight
    • BIncreases client-side JavaScript
    • CEnhances server-side security
    • DImproves code readability
  7. 7.You observe two copies of a library in your bundle. What is a likely cause?

    • AMismatched library versions
    • BToo many static routes
    • CPrefetching disabled
    • DExcessive client components
  8. 8.What is a common cause of high CLS in a Next.js app?

    • AStatic routes
    • BPrefetching enabled
    • CFont swaps
    • DDynamic imports