DevPrep
  • Interview Prep
  • Projects
  • Resources
  • Pricing
  • About Us
Submit Question
DevPrep
  • Pricing
  • About Us
Submit Question
← From Beginner to Expert in Fundamentals of Frontend
  • How the Web Works
  • Browsers: The Engines
  • Networking & Latency
  • HTTPS & TLS Handshake
  • CDNs & Edge Computing
  • WebSockets & WebRTC
  • RESTful Architecture
  • GraphQL Architecture
  • CORS (Cross-Origin Resource Sharing)
  • Load Balancing
  • Critical Rendering Path Deep Dive
  • DOM vs. CSSOM Construction
  • The Rendering Engine: Layout, Paint, Compositing
  • JavaScript Engine: V8 Internals
  • The Event Loop: Macro vs. Micro Tasks
  • Garbage Collection
  • Browser Storage Architecture
  • Service Workers & PWAs
  • Web Workers: Multi-Threading
← From Beginner to Expert in Fundamentals of Frontend

Browsers: The Engines

30 min read
Rendering EngineBlinkWebKitCritical Rendering PathReflow & RepaintDOM TreeCSSOM

How Chrome/Safari Actually Turn Code into Pixels

Browsers are incredibly sophisticated software. Understanding their internals separates good developers from great ones.

Rendering Engines

Blink (Chrome, Edge, Opera) and WebKit (Safari) are the two dominant rendering engines. They parse HTML into a DOM tree, CSS into a CSSOM tree, and combine them into a Render Tree.

The Critical Rendering Path

This is the sequence of steps the browser takes to convert HTML, CSS, and JavaScript into actual pixels:

  1. Parse HTML → DOM Tree
  2. Parse CSS → CSSOM Tree
  3. Combine → Render Tree
  4. Layout → Calculate geometry (position, size)
  5. Paint → Fill in pixels
  6. Composite → Layer management and GPU acceleration

Reflow & Repaint

Reflow (Layout recalculation) is expensive — it happens when you change element dimensions. Repaint is cheaper — it happens when you change visual properties like color.

Practice

  • JavaScript
  • DSA
  • Machine Coding
  • System Design

Resources

  • Learning Tracks
  • Articles
  • Roadmaps
  • Compare Concepts
  • Glossary
  • Developer Tools
  • All Questions

Company

  • About
  • Pricing

Legal

  • Privacy Policy
  • Terms of Service
DevPrep

© 2026 DevPrep. All rights reserved.