Frontend Performance and Rendering Optimization Questions

Making web pages and single-page apps fast: Core Web Vitals (LCP, INP, CLS) and page-speed metrics, the critical rendering path, reflow, repaint, forced synchronous layout and compositing, and diagnosing loading and rendering bottlenecks with browser DevTools, long-task traces and field data. Covers bundle size, code splitting, tree shaking and lazy loading, JavaScript parse and compile cost, script loading (async, defer), resource hints and fetch priority, HTTP/2 and HTTP/3 loading trade-offs, image and web-font delivery, critical CSS, a page's own browser caching (Cache-Control, fingerprinted filenames) and service-worker caching of a web app's assets, offloading work to Web Workers, smooth animation on the compositor, list virtualization and React re-render optimization, browser memory leaks and garbage-collection jank, third-party script impact, loading WebAssembly modules, rendering-strategy trade-offs for speed (CSR, SSR, SSG, streaming and partial hydration), and measuring and defending speed: user timing, real user monitoring against synthetic tests, performance budgets in CI, regression investigation and performance targets across teams. Server-side and system latency, CDN and edge caching, distributed caches, general state-management design, and design-system or visual-design decisions are covered elsewhere.

EasyTechnical
80 practiced

A product manager says the page feels slow. How do you turn that vague complaint into measurable metrics and concrete engineering tasks?

MediumTechnical
74 practiced

Design an end-to-end approach to serving images in modern formats at the right sizes: when to generate variants, how the right one reaches each browser, how it is cached, and which loading choices protect LCP.

HardTechnical
61 practiced

For a React and TypeScript app, how would you configure webpack or Vite so routes and heavy components load on demand and third-party libraries lose their unused code? Cover chunk naming and prefetch behaviour.

MediumTechnical
63 practiced

A lazily loaded React route fails to download on a flaky connection. What does the user see today, how do you handle that failure, and what other pitfalls come with lazy loading components?

MediumTechnical
81 practiced

Your team keeps accidentally making a screen re-render more than it should after small changes. How would you write an automated check that fails when a component re-renders more times than expected during a user flow, and what are the limits of that check?

Unlock Full Question Bank

Get access to all Frontend Performance and Rendering Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.