Web Fundamentals

Web Fundamentals for Frontend Interviews

Web Fundamentals Map

Rendering & Browser Architecture

Critical Rendering PathScript Loading Patterns (async/defer)Event Loop Deep DiveJavaScript Module Systems (CJS, ESM, UMD)Dynamic Module Loading (import())Import on InteractionImport on VisibilityBrowser Rendering Pipeline & Layout ThrashingRendering Strategies (CSR, SSR, SSG, ISR)Streaming SSR & Progressive HTMLIslands ArchitectureReact Server ComponentsFramework Reactivity (React, Vue, Svelte, Solid)HTTP/1.1 vs HTTP/2 vs HTTP/3 (QUIC)DNS Resolution & TTL Caching

Performance

Core Web Vitals: LCP, INP, CLSPerformance Optimization Trade-offsCritical Resource PrioritizationCode Splitting & Dynamic ImportsTree Shaking & Dead Code EliminationLazy LoadingResource Hints: Preload, Prefetch & PreconnectText Compression: Gzip & BrotliImage & Video OptimizationAdaptive LoadingList VirtualizationWeb Workers vs Main ThreadMemory Leaks: Detection & PreventionManaging Third-Party ScriptsHow CDNs WorkHTTP Caching Deep DiveService Workers & Offline StrategyPWA Fundamentals

Security

Cross-Site Scripting (XSS)Cross-Site Request Forgery (CSRF)CORS ExplainedCORS Preflight, Credentials & MisconfigurationsContent Security Policy (CSP)Why is HTTPS Secure? (TLS/SSL)Authorization Best PracticesCookie Security & Session Hardening

State & Data Architecture

State Management Guide (Context vs Zustand vs Redux)React Query & Server State CachingData Fetching PatternsCaching StrategiesPagination: Offset vs Cursor-BasedReal-time Communication (WebSocket, SSE, Polling)
Est. Prep Time: 3-4 WeeksSenior & Staff Level Focus

Web Fundamentals for Frontend InterviewsComplete Guide

Master the frontend fundamentals interviewers actually test: browser rendering, JavaScript runtime behavior, modern rendering strategies, architecture, performance, and security. Use this hub as your roadmap for structured interview prep.

Start with requirements before jumping to components

Use this page as a practical roadmap: build your core mental model first, then deepen with architecture, performance, and security topics.

Structured learning path

Learn web fundamentals in the order that makes interviews easier. Follow a path that mirrors how strong frontend engineers explain systems in interviews.

1
Critical Rendering Path

Why is the screen still blank? Master the critical rendering path, find render-blocking culprits, and get pixels on the screen faster.

2
JavaScript Runtime

Stop guessing why setTimeout runs later. Master the Event Loop, microtasks, macrotasks, and main-thread scheduling.

3
Rendering Strategies

Navigate the modern tradeoff matrix: CSR, SSR, SSG, ISR, Streaming, and React Server Components (RSCs).

4
Performance & Web Vitals

Move beyond definitions. Master INP, LCP, CLS, resource loading, and main-thread offloading (Web Workers).

5
Security & APIs

Lock down your app. Understand XSS, CSRF, CSP, and secure data fetching patterns.

How frontend performance unfolds in the browser

Many frontend interview questions are really testing whether you understand where time is spent between navigation and interactivity.

01 · The Network Phase

Navigation Start, DNS, TCP, TLS, TTFB

Is the server awake and reachable?

↓

02 · The Browser Phase

HTML Parsing

Are we drawing the first pixels?

↓

03 · The Content Phase

FCP, LCP (Largest Contentful Paint)

Did the primary content render?

↓

04 · The Interactivity Phase

Hydration, INP (Interaction to Next Paint)

Can the user interact without UI freezing?

How frontend performance actually unfolds in the browser

Many frontend interview questions are really asking whether you understand where time is spent between navigation and interactivity.

  1. 01

    Navigation Start

  2. 02

    DNS / TCP / TLS

  3. 03

    TTFB

  4. 04

    HTML Parsing

  5. 05

    FCP

  6. 06

    LCP

  7. 07

    Hydration

Production-Ready Standards

You know the fundamentals. Here is how you write code that scales and stays reliable in production.

AxisWhat is TestedStrong Signal
Accessibility (A11y)Walk through the Critical Rendering Path. What blocks first paint?Semantic HTML & ARIA Attributes, Keyboard Navigation & Focus Management
TestingWhy do Promise callbacks run before setTimeout, and how do microtasks work?Unit vs Integration vs E2E, Mocking APIs & Timers
Observability & DeploymentCompare CSR vs SSR vs SSG vs ISR. When would you choose each?RUM & Performance Signals, Error Boundaries, CI/CD Pipelines

Difficulty Progression — Start Here

Start with focused interaction topics, then move to data-heavy systems, and finally collaboration-heavy architectures.

Level 1

Interaction Systems

Autocomplete, image carousel, and chat input. Focus on request lifecycle, local state, and responsiveness.

Level 2

Data-heavy Apps

News feed, search, and dashboards. Focus on caching, normalization, pagination, and rendering performance.

Level 3

Complex Interactive Systems

Collaborative and workflow-heavy apps. Focus on concurrency, consistency, and resilience.

Most Asked Topics

These are the concepts that come up again and again in frontend interviews.

Start Here

Critical Rendering Path

What blocks rendering and first paint.

Explore topic

Most Asked

Event Loop Deep Dive

Microtasks, macrotasks, promises, runtime behavior.

Explore topic

High Signal

Rendering Strategies (CSR to RSCs)

When to choose each rendering mode.

Explore topic

Performance

Core Web Vitals

LCP, INP, CLS and practical optimization.

Explore topic

Security

Cross-Site Scripting (XSS)

Understand how XSS happens, how to prevent it, and how CSP and safer rendering patterns fit into real apps.

Explore topic

Architecture

State Management Guide

Learn how to reason about client state, server state, caching, invalidation, and scalable frontend architecture.

Explore topic

Browse by Interview Goal

Use the homepage to surface the highest-signal areas first, then explore deeper topic clusters from the sidebar.

🌐

Rendering & Browser Architecture

Start with the browser mental model, rendering strategies, hydration, and runtime behavior.

  • Critical Rendering Path
  • Script Loading Patterns (async/defer)
  • Event Loop Deep Dive
  • JavaScript Module Systems (CJS, ESM, UMD)
  • Dynamic Module Loading (import())
  • Import on Interaction
  • Import on Visibility
  • Browser Rendering Pipeline & Layout Thrashing
  • Rendering Strategies (CSR, SSR, SSG, ISR)
  • Streaming SSR & Progressive HTML
  • Islands Architecture
  • React Server Components
  • Framework Reactivity (React, Vue, Svelte, Solid)
  • HTTP/1.1 vs HTTP/2 vs HTTP/3 (QUIC)
  • DNS Resolution & TTL Caching
⚡

Performance

Cover loading order, Core Web Vitals, bundle strategy, caching, and real-world optimization.

  • Core Web Vitals: LCP, INP, CLS
  • Performance Optimization Trade-offs
  • Critical Resource Prioritization
  • Code Splitting & Dynamic Imports
  • Tree Shaking & Dead Code Elimination
  • Lazy Loading
  • Resource Hints: Preload, Prefetch & Preconnect
  • Text Compression: Gzip & Brotli
  • Image & Video Optimization
  • Adaptive Loading
  • List Virtualization
  • Web Workers vs Main Thread
  • Memory Leaks: Detection & Prevention
  • Managing Third-Party Scripts
  • How CDNs Work
  • HTTP Caching Deep Dive
  • Service Workers & Offline Strategy
  • PWA Fundamentals
🛡️

Security

Learn the frontend security topics strong candidates explain clearly in interviews.

  • Cross-Site Scripting (XSS)
  • Cross-Site Request Forgery (CSRF)
  • CORS Explained
  • CORS Preflight, Credentials & Misconfigurations
  • Content Security Policy (CSP)
  • Why is HTTPS Secure? (TLS/SSL)
  • Authorization Best Practices
  • Cookie Security & Session Hardening
🗂️

State & Data Architecture

Understand state management, server state, caching, storage, and backend interaction patterns.

  • State Management Guide (Context vs Zustand vs Redux)
  • React Query & Server State Caching
  • Data Fetching Patterns
  • Caching Strategies
  • Pagination: Offset vs Cursor-Based
  • Real-time Communication (WebSocket, SSE, Polling)

What Interviewers Commonly Ask

Practice these high-frequency questions to build interview-ready explanations.

💬  Walk through the Critical Rendering Path. What blocks first paint?

Read the explanation

💬  Why do Promise callbacks run before setTimeout, and how do microtasks work?

Read the explanation

💬  Compare CSR vs SSR vs SSG vs ISR. When would you choose each?

Read the explanation

💬  What is hydration, and what causes hydration mismatch?

Read the explanation

💬  Explain XSS vs CSRF vs CORS. What defenses would you add in production?

Read the explanation

💬  How do you choose between Context, Zustand, Redux, and server-state tools?

Read the explanation

Explore More Topics

These sections are valuable, but better as secondary discovery on the hub instead of the main homepage focus.

🏗️

Application Architecture

Patterns for resilient, observable, scalable frontend systems.

  • Component Architecture Patterns
  • Error Handling & Resilience
  • Frontend Observability: RUM, Errors, and Performance Signals
♿

Accessibility

A11y topics that matter in production and in strong interview answers.

  • Accessibility in Design
  • Semantic HTML & ARIA Attributes
  • Keyboard Navigation & Focus Management
🎨

Styling & Design

Scalable styling, design systems, and internationalized UI concerns.

  • React Styling (CSS/CSS-in-JS/Tailwind)
  • Creating Design Systems
  • Internationalization (i18n)
🧪

Testing

Keep testing present, but do not let it dominate the hub hero area.

  • Testing Strategies Guide
📦

Build & Deployment

Useful for completeness, but better lower on the page than above the core concepts.

  • Build & Deployment Guide
🧩

JavaScript Output & React Hooks

Good engagement sections that users can discover after the core interview fundamentals.

  • Hoisting (var, let, const)
  • Promises & Event Loop
  • Understanding Hook Rules
  • useEffect: Side Effects

Frequently Asked Questions

Hub Guide

On this page

Recommended OrderMental ModelEvaluation StandardsDifficulty ProgressionMost Asked TopicsBrowse by GoalCommon QuestionsExplore MoreFAQ