---
title: "How we think about browsers"
description: "GitHub is moving its shipped JavaScript to ECMAScript 2020 syntax, including optional chaining and nullish coalescing, which cuts about 10kb of JavaScript site-wide."
url: "https://swe.quest/articles/how-we-think-about-browsers-11d4c743ef02de84"
canonical: "https://github.blog/engineering/infrastructure/how-we-think-about-browsers/"
source: "GitHub Engineering"
published: "2022-06-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 39
tags: ["browsers","web-performance","javascript","frontend"]
---

# How we think about browsers

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2022-06-10, 39 min read, Case study. Original: [https://github.blog/engineering/infrastructure/how-we-think-about-browsers/](https://github.blog/engineering/infrastructure/how-we-think-about-browsers/)

## Summary

GitHub is moving its shipped JavaScript to ECMAScript 2020 syntax, including optional chaining and nullish coalescing, which cuts about 10kb of JavaScript site-wide. Progressive enhancement keeps basic functionality working for very old browsers that can't run the new syntax. User-Agent analytics from May 2022 show about 95% of requests come from seven browsers, led by Chrome at over 70%. Over 70% of traffic is on the latest browser release and under 1% is three or more versions behind, and week-over-week Safari data shows how quickly new versions get adopted. These numbers drive which browsers GitHub tests on, how its static analysis is configured, and which syntax features and polyfills it ships, with support from a newly open-sourced browser support library.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- JavaScript transpilation and polyfills ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- progressive enhancement

## Keywords

GitHub, ECMAScript 2020, ES2019, User-Agent, optional chaining, nullish coalescing, Safari, Chrome

## Related posts

- [Bun v1.3.12](https://swe.quest/articles/bun-v1-3-12-6739a38ec397eac1.md): Bun · 2026-04-09 · Medium · 18 min read · JavaScript, Runtimes & VMs, Performance engineering, Developer tools
  Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends.
- [Version 100 in Chrome and Firefox](https://swe.quest/articles/version-100-in-chrome-and-firefox-7e9e296bffcfcd0e.md): Mozilla Hacks · 2022-02-15 · Medium · 4 min read · Browsers, Frontend, Testing
  Chrome (March 29, 2022) and Firefox (May 3, 2022) are reaching major version 100, and the move to a three-digit version in the User-Agent string could break sites whose UA parsing assumes two digits.
- [Bun v1.3.9](https://swe.quest/articles/bun-v1-3-9-b7a8e766ebce7857.md): Bun · 2026-02-08 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering, Compilers
  Bun v1.3.9 adds \`bun run --parallel\` and \`--sequential\` for running package.json scripts with prefixed output across workspaces, along with Node-compatible HTTP/2 connection upgrades via \`net.Server\`, \`Symbol.dispose\` support for test mocks, \`NO\_PROXY\` handling for explicit proxies, \`--cpu-prof-interval\`, and ESM bytecode in \`--compile\`.
- [Bun v1.3.7](https://swe.quest/articles/bun-v1-3-7-c2527b00781a4168.md): Bun · 2026-01-27 · Medium · 20 min read · JavaScript, Runtimes & VMs, Performance engineering, Developer tools
  Bun v1.3.7 upgrades JavaScriptCore, which brings faster async/await (35%), Array.from, padStart/padEnd, array.flat and better ARM64 codegen using ccmp/ccmn chains.
- [Optimizing WebKit & Safari for Speedometer 3.0](https://swe.quest/articles/optimizing-webkit-safari-for-speedometer-3-0-a9a8d1c62cb906f4.md): WebKit · 2024-04-10 · Hard · 11 min read · Browsers, Web performance, Runtimes & VMs, Memory management, Performance engineering
  WebKit's Speedometer 3.0 work spans JavaScriptCore, DOM, style, layout, rendering and Safari itself, with measured gains for each change.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
