Skip to article content
FrontendXLesson 01 / 20

What a Browser Actually Does

Build an accurate mental model of what the browser does, from navigation and HTTP through parsing, rendering, storage, workers, security, and DevTools, so you can predict behavior and debug real pages.

beginner · about 25 minutes · 2 exercises

  • Predict
  • Explain

What you will be able to do

#
  • Name the main browser processes and their responsibilities.
  • Describe the rendering pipeline stages in order.
  • Explain why renderer processes are isolated per site.

Overview

#

A browser is not one program. It is a set of cooperating processes and threads that turn a URL into pixels.

Processes

  • Browser process: window and tab UI, network requests, storage, permissions, and process management.
  • Renderer process: one per site (roughly), running the main thread, DOM, style, layout, and JavaScript.
  • GPU process: rasterization and compositing on the GPU.
  • Utility processes: audio, networking, and other sandboxed helpers.

Site isolation means pages from different origins usually run in different renderer processes, so a crash or exploit in one page is contained.

Threads inside a renderer

The main thread runs JavaScript, parses HTML, computes styles, and runs layout. It is single threaded, so long JavaScript blocks rendering. The compositor thread, raster threads, and worker threads run off the main thread.

The rendering pipeline

  1. Parse HTML into the DOM.
  2. Parse CSS into the CSSOM.
  3. Combine them into the render tree.
  4. Layout computes geometry.
  5. Paint records draw commands.
  6. Composite assembles layers on the GPU.

Why it matters

Every performance and debugging technique in this course maps to one of these stages. Knowing which stage is slow tells you which tool to use.

Questions to carry forward

  • Which process owns the network stack?
  • Why does a heavy synchronous script freeze the whole tab?
  • What happens to other tabs when one renderer crashes?

Exercises

#

Reference answers and expected output are authored, not executed in this browser. Nothing you type is run, and there is no Run or Pass control on this page.

  1. Exercise 1Predict

    A tab runs a three second synchronous loop on the main thread. Which of these still updates smoothly?

    Choose the best answer
  2. Exercise 2Explain

    Explain why the browser uses multiple renderer processes instead of one process for all tabs.

    Reveal the reference answer
    reference.text
    Separate renderer processes isolate pages from each other for security and stability. A malicious or crashing page cannot read another origin's memory or take down the whole browser, and site isolation enforces the same-origin policy at the process boundary.

    Authored expected output: An answer covering isolation, security, and crash containment.

    The two goals are security (limit the blast radius of an exploit) and stability (a crash in one page should not kill every tab).

Common misconceptions

#
  • The browser is a single process.
  • JavaScript and layout run on different threads inside the same renderer.
  • The GPU process parses HTML.

Follow-up practice

#
  • browser-internals-navigation-lifecycle
  • browser-internals-devtools-elements-network

Related resources

#

Your progress

#

Answers, drafts and completion marks are stored only in this browser. Nothing is sent to a server and no account is used.

Verification: authored. Answers and outputs on this page are authored reference material, not executed results.

© 2026 FrontendX. All rights reserved.