---
title: "Improving performance with incremental frame loading"
description: "Figma's prototype player used to load entire documents into memory, causing multi-minute loads and crashes on memory-constrained mobile devices."
url: "https://swe.quest/articles/improving-performance-with-incremental-frame-loading-2561f28b61e84c3a"
canonical: "https://www.figma.com/blog/incremental-frame-loading/"
source: "Figma"
published: "2024-01-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["web-performance","realtime","memory-management","performance","system-design"]
---

# Improving performance with incremental frame loading

A post on [Figma](https://swe.quest/sources/figma.md), published 2024-01-23, 8 min read, Case study. Original: [https://www.figma.com/blog/incremental-frame-loading/](https://www.figma.com/blog/incremental-frame-loading/)

## Summary

Figma's prototype player used to load entire documents into memory, causing multi-minute loads and crashes on memory-constrained mobile devices. Incremental frame loading now fetches only the current screen and its directly reachable neighbors, built on a subscription protocol (query/reply/changes messages) that syncs subtrees of the document in real time, transitively subscribes to dependencies like components, styles and variables, and evicts unsubscribed nodes so nothing goes stale. Desktop clients keep loading remaining screens in the background while mobile clients load on navigation and evict old screens. Main-thread lockups were reduced by chunking loads and skipping layout and boolean computation for screens that aren't visible.

Written by swe.quest, not by the author.

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

## Topics

- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- real-time collaborative editing basics ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- browser main-thread constraints

## Keywords

Figma, incremental frame loading, multiplayer sync protocol

## Related posts

- [Speeding up file load times, one page at a time](https://swe.quest/articles/speeding-up-file-load-times-one-page-at-a-time-6f46ca8213350490.md): Figma · 2024-05-22 · Medium · 13 min read · Web performance, Real-time systems, Data structures, System design
  Figma extended dynamic page loading from view-only files and prototypes to editable files, cutting load times for the slowest 5% of loads by 33% and reducing client memory.
- [Keeping Figma fast](https://swe.quest/articles/keeping-figma-fast-eb21da7244ac5731.md): Figma · 2023-08-29 · Medium · 14 min read · Performance engineering, Testing, CI/CD, Web performance
  Figma replaced its single-MacBook performance testing setup with two systems sharing one CI scheduler.
- [Improving performance in the layers panel](https://swe.quest/articles/improving-performance-in-the-layers-panel-1cd0d897a08e1393.md): Figma · 2026-06-11 · Medium · 8 min read · Performance engineering, Frontend, Caching, Data structures
  Figma rebuilt its layers panel to fix two problems: it computed data for every expanded node, and it recomputed everything after any change.
- [How Figma draws inspiration from the gaming world](https://swe.quest/articles/how-figma-draws-inspiration-from-the-gaming-world-d8a336bcdbd13832.md): Figma · 2023-05-03 · Easy · 13 min read · Real-time systems, WebAssembly, System design, Games, Debugging
  Figma's architecture resembles a game engine more than a typical web stack: a C++ canvas compiled to WebAssembly for 2D rendering, a React/TypeScript UI layer, and a Rust multiplayer server, plus layered systems for multiplayer, animation, collisions, chat and plugins.
- [Macramé: Untangling the Knot on the Etsy Android Listing Screen](https://swe.quest/articles/macrame-untangling-the-knot-on-the-etsy-android-listing-screen-4979a6b6f6a452f8.md): Etsy Code as Craft · 2024-03-18 · Medium · 7 min read · Mobile, Java & JVM, Refactoring & migrations, Testing, Performance engineering
  Etsy rewrote its 4000-line Android listing Fragment into Macramé, a Mobius-inspired unidirectional architecture: a single immutable State exposed via StateFlow, flattened into small UI models rendered by a RecyclerView with ListAdapter diffing, and a sealed-class Event dispatcher routing actions to single-purpose Handlers that update State, launch async work, or emit SideEffects to the Fragment.

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)
