yari icon indicating copy to clipboard operation
yari copied to clipboard

refactor(client): load more lazily

Open caugner opened this issue 2 years ago • 2 comments

Summary

Problem

Our main bundle is larger than it could be.

Solution

Load more pages lazily.


Screenshots

Before

  156.44 kB  build/static/js/main.1b11e75b.js
  28.42 kB   build/static/css/main.8782317e.css

After

  128.77 kB  build/static/js/main.cfa13c20.js
  21.99 kB   build/static/css/main.a25ea272.css

How did you test this change?

Ran yarn build:client.

caugner avatar Dec 06 '23 18:12 caugner

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Dec 14 '23 11:12 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Feb 21 '24 11:02 github-actions[bot]

Lazy-loading impacts SSR, so closing for now, see also: https://github.com/mdn/yari/pull/11048

caugner avatar May 02 '24 17:05 caugner