Quiz - Performance vigilance
You ship a fix at 9am and want to know within the hour whether it improved performance. Why can’t you rely on the Speed Insights field score to tell you?
A marketing page has a small header logo (first in the DOM), a full-bleed hero photo, and two product thumbnails — all above the fold. To improve LCP, which gets the preload prop?
preload is a fixed budget you spend on one image.preload per page, on the element that defines LCP.You add experimental.optimizePackageImports to next.config.ts. Which packages actually belong in that list?
lodash, since those are the ones that can’t be tree-shaken.lodash won’t help; the fix there is to switch to lodash-es.In the production bundle treemap, the single biggest tile is the React + Next runtime. What’s the right move?
dynamic() so it only loads on routes that need it.Your Lighthouse report shows green LCP and CLS. Why does it never show you an INP value?
You wrap two co-located Server Component awaits in Promise.all, but the second read actually needed the first’s value. What happens?
undefined and quietly produces wrong data.Promise.all throws immediately because it detects the missing dependency.In a production trace, the invoice list is one fat 280ms span while the audit-log page is a staircase of fifty thin spans. Match each signature to its structural fix.
(organization_id, …) index; staircase → collapse the N+1 with Drizzle with or a join.'use cache' so warm requests skip the latency.Quiz complete
Score by topic