liveBook · Manning

Rendering engine

As explained in Vanilla Web

A rendering engine is browser software that parses web content and produces the rendered document and interactive page experience.

A rendering engine turns HTML, CSS, and JavaScript into the interactive experience shown in a browser or app. It is not the browser itself: an engine can also render content in an installed PWA or a web view. section 2.1.1

The three major engine families are Blink, WebKit, and Gecko. They aim to follow the same web standards, but implementation details, optimizations, and release schedules differ. JavaScript execution is a separate concern, though its engine is typically grouped with the rendering engine: Chrome uses V8, while Firefox uses SpiderMonkey. section 2.1.1

Build for the engine the user has, not one you wish they had:

  • Supply source JavaScript; application code cannot choose the engine that runs it. section 2.1.1
  • Use feature detection and progressive enhancement when capabilities differ. Baseline and Interop help track cross-engine consistency. section 2.1.1
Figure 2.2 This is the open-source PWA image converter Squoosh installed on iOS, macOS, and Android with different browsers and web engines rendering its content in a standalone window.
ch02 F002 firtman

The same installed PWA appears on iOS, macOS, and Android, illustrating that a standalone app window still relies on a web engine. section 2.1.1

How Vanilla Web covers it

How deep it goes
Defines the major engine families and distinguishes rendering from JavaScript execution, without detailing rendering internals.
Examples
Uses an installed PWA on iOS, macOS, and Android to illustrate rendering across devices.
What it assumes
Assumes familiarity with HTML, CSS, and JavaScript while defining the rendering engine’s role.
What you can do after
Practice/perform feature detection and progressive enhancement instead of relying on a particular engine.
How it connects
Connects rendering engines to web standards, JavaScript engines, feature detection, progressive enhancement, Baseline, and Interop.

Also explained in

Compare how 2 books explain rendering engine →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Vanilla Web. The section links point to the parts of the book it draws on.