Frontend CoachResourcesQuestions
Sign inGet started
All interview questions

Question Bank

Browser & Web API Interview Questions

How browsers actually work: the render pipeline, storage options, service workers, Web Workers, CSP and security headers, Intersection Observer, Shadow DOM, and the platform APIs that come up in senior frontend interviews.

49 questions — free to read, with quizzes and AI-scored practice for members.

Browser & Web APIs49 questions

What are the key differences between localStorage and sessionStorage?juniorWhat is HTTP and what are the most common HTTP methods?juniorWhat is the difference between CSS `position: relative`, `absolute`, `fixed`, and `sticky`?juniorWhat is the CSS box model and what are its four components?juniorWhat is the DOM and how does JavaScript interact with it?juniorHow does CSS Flexbox work and what problems does it solve?juniorExplain the Critical Rendering Path from HTML to pixel.midHow would you use the Intersection Observer API to implement lazy loading, infinite scroll, and impression tracking without scroll event listeners?midCompare cookies, localStorage, and IndexedDB for client-side storage.midHow do you eliminate layout shift and invisible-text flash caused by web fonts, and what is the optimal loading strategy for a performance-critical site?midHow do you choose between cookies, localStorage, sessionStorage, and IndexedDB for different data persistence needs, and what are the security implications of each?midExplain the differences between XSS and CSRF and how to prevent them.seniorWhen should you choose WebSockets over polling or Server-Sent Events for real-time updates?seniorHow would you implement an Optimistic UI for a like button?seniorHow can you prevent Cross-Site Scripting (XSS) attacks in a web application?seniorWhat is the difference between reflow and repaint in browser rendering?seniorWhy does a CORS error occur, and how can it be resolved?seniorHow would you design a client-side architecture for a chat application?seniorHow would you handle message ordering and delivery reliability in a chat application using WebSockets?seniorHow does React decide whether to update, mount, or unmount a component?seniorHow does event delegation improve performance in web applications?seniorExplain the execution order of console logs in JavaScript with setTimeout and Promise.seniorHow does proper HTTP caching improve web performance?seniorHow does a Service Worker enable offline functionality in a PWA?seniorHow does the messaging app ensure message ordering and uniqueness?seniorHow would you implement a multi-layer cache strategy to efficiently fetch token prices for 1000 users accessing a widget simultaneously?seniorHow do Shadow DOM and Custom Elements enable widget isolation in a third-party SDK, and what are the limitations compared to iframes?seniorWhy is the first HTTPS request slower than subsequent ones?seniorHow does bidirectional virtualization improve performance in rendering large grids?seniorHow would you architect a news feed using modern web APIs?seniorHow does HTTP/3 (QUIC) improve upon traditional TCP for web communications?seniorHow would you design a URL shortening service to handle high read and write QPS efficiently?seniorWhen does the cleanup function in useEffect run?seniorHow would you design a system to track transaction status across multiple blockchain networks?seniorHow can you ensure isolation of an embedded SDK widget from a host app's global styles and scripts?seniorHow would you design a system to offload CPU-intensive work from the main thread using Web Workers, and what are the serialization and communication trade-offs?seniorHow would you design a strategy to load, monitor, and sandbox third-party scripts (analytics, chat widgets, tag managers) without hurting Core Web Vitals?seniorHow do different client-side cache layers impact performance and data freshness?seniorHow does the stale-while-revalidate strategy improve user experience?seniorHow does virtualized grid rendering improve performance in a photo gallery with thousands of images?seniorHow does the event loop prioritize tasks in JavaScript?seniorExplain how generational garbage collection works in JavaScript engines.seniorWhy is it beneficial to perform sorting and filtering on the server side for large datasets?seniorHow would you design and implement a strict Content Security Policy for a complex web application that uses third-party scripts and inline styles?seniorHow would you implement a feed using the provided API contract?seniorHow does a Service Worker manage network requests and caching in a web application?seniorWhat are the pros and cons of using the 'Stale-While-Revalidate' cache strategy?seniorWhat is CORS, why might it be blocked, and what is a preflight request?seniorWhen should you use WebAssembly (WASM) and what is the integration pattern with React?senior

Practice these with AI feedback and track what you've mastered.

Sign up free

Browse other topics

JavaScriptReactFrontend System DesignWeb PerformanceTestingBehavioral