Frontend Performance and Rendering Optimization Questions
Making web experiences fast: Core Web Vitals, the critical rendering path, page-speed optimization, and client-side performance techniques. Covers measuring web-performance metrics, diagnosing bottlenecks in loading and rendering, and the trade-offs of different rendering strategies for perceived and actual speed.
Describe how frontend performance choices interact with backend API design. Using an example where the client must display a dashboard of widgets that each require different endpoints, explain strategies to reduce perceived latency: GraphQL batching, response shaping, HTTP/2 multiplexing, and edge-aggregated APIs.
Create a realistic performance budget for a medium-sized SPA (home page LCP target 2.5s). Include numeric budgets for: total JS bundle size, initial server payload (HTML), number of critical requests, time-to-first-byte, LCP, CLS, and max long task duration. Explain how you'd enforce this budget in CI and handle false positives.
At a high level, explain tree-shaking and code splitting. When would you prefer route-based code splitting over component-level splitting, and how do modern bundlers (e.g., Webpack, Rollup, Vite) help with these techniques?
Design a font-loading strategy to avoid FOIT (flash of invisible text) but also avoid large layout shifts. Explain how to use <link rel="preload">, font-display: swap, font subsets, and variable fonts. Include trade-offs for using system fonts vs web fonts.
Define and differentiate 'reflow' (layout) and 'repaint' in the browser. Provide three example DOM/CSS changes that cause reflow and two that only cause repaint. Explain why minimizing reflow is important for interactive experiences.
Unlock Full Question Bank
Get access to all 37 Frontend Performance and Rendering Optimization interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.