Frontend Performance Engineer Interview Questions & Answers
40 questions for Frontend Performance Engineer interviews — 1 easy, 21 medium, 18 hard.
About the Frontend Performance Engineer role
A frontend performance engineer makes web apps load and respond fast on real devices and networks. They monitor Core Web Vitals from real users, analyse bundles, optimise images, fonts and JavaScript execution, and set performance budgets in CI. E-commerce and consumer apps in India, where many users have budget phones, rely heavily on this expertise.
npm audit reports a critical vulnerability in a dependency. What do you do?
Show answer
What is transpilation and how does browserslist control it?
Show answer
Split vendor libraries into separate chunks and visualise the bundle.
Show answer
Break a long-running loop into smaller tasks to keep the page responsive.
Show answer
Users report errors you cannot reproduce. How do you set up frontend observability?
Show answer
Lighthouse shows a score of 95, but Search Console reports failing Core Web Vitals. Why?
Show answer
Register a service worker that caches static assets with a cache-first strategy.
Show answer
How do HTTP caching headers work for frontend assets?
Show answer
Ten teams work on one large frontend and releases keep blocking each other. What would you propose?
Show answer
Configure cache headers for hashed assets and HTML in Nginx.
Show answer
You must change a complex legacy module that has no tests. How do you proceed safely?
Show answer
How do you estimate the time needed for a frontend feature?
Show answer
What is hydration and why can it hurt performance?
Show answer
Your page embeds a payment iframe from another domain and needs its result. How do you do it safely?
Show answer
Enforce a performance budget in CI with Lighthouse CI.
Show answer
Implement a throttle function.
Show answer
Write a GitHub Actions workflow that lints, tests and builds a frontend app.
Show answer
How do monorepo tools like Turborepo or Nx help frontend teams?
Show answer
Compare IntersectionObserver, ResizeObserver and MutationObserver.
Show answer
Move a heavy calculation into a Web Worker.
Show answer
How do HTTP/2 and HTTP/3 change frontend bundling strategy?
Show answer
After a release, the app shows a blank page in some older browsers. What could be wrong?
Show answer
Create a simple custom element with Shadow DOM.
Show answer
In a single-page app, the back button takes users out of the site instead of to the previous filter. Why?
Show answer
Most of your users are on low-end Android phones with slow networks. How does that change your approach?
Show answer
How do environment variables work in frontend builds, and what is the risk?
Show answer
How can you communicate between multiple tabs of the same site?
Show answer
What are Web Components and Shadow DOM?
Show answer
How do you handle unclear requirements from a product manager?
Show answer
How did you convince stakeholders to prioritise performance work over new features?
Show answer
When a user logs out in one tab, other open tabs stay logged in. How do you fix it?
Show answer
Field data shows poor INP on the product page's Add to Cart button. How do you investigate?
Show answer
Why use requestAnimationFrame instead of setTimeout for animations?
Show answer
Explain common service worker caching strategies.
Show answer
Write a DeepReadonly type using mapped and conditional types.
Show answer
Production builds take eight minutes on an old webpack setup. How would you speed them up?
Show answer
Marketing has added many third-party scripts and the site has become slow. What do you do?
Show answer
After a deployment, some users keep seeing the old version of your PWA. Why?
Show answer
Describe a disagreement with your team about choosing a tool or framework.
Show answer
Frequently asked questions
What does a Frontend Performance Engineer do?
A frontend performance engineer makes web apps load and respond fast on real devices and networks. They monitor Core Web Vitals from real users, analyse bundles, optimise images, fonts and JavaScript execution, and set performance budgets in CI. E-commerce and consumer apps in India, where many users have budget phones, rely heavily on this expertise.
Which skills are tested in a Frontend Performance Engineer interview?
Expect questions on Core Web Vitals, Bundle analysis, Performance profiling, Caching strategies, Real user monitoring. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Frontend Performance Engineer interview?
Revise Web Performance, Build Tools and Tooling, Browser APIs first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.