tldraw/assets
alex 719332d272
serve icons via a single merged .svg file (#4150)
We currently serve icons in the form of 141 separate svg files. This is
pretty inefficient: it results in 141 http requests each with its own
overheads and costs. Each one is generally less than 1kb of data.

This PR merges all of our icons into a single 44kb icon file. Each item
in the svg has an ID, and we use the ID in the asset url to target the
specific icon. This also fixes a lot of the icon preloading issues:
because the icon file is already loaded, there's no extra request needed
when panels open etc.

I was messing with this whilst killing time before a late meeting so
made a shitty overengineered code generator, dont at me

### Change type

- [x] `improvement`

### Release notes

- Serve icons more efficiently, and make sure they're still available if
tldraw goes offline.
2024-07-15 11:03:11 +00:00
..
embed-icons Add desmos graph embed type (#3608) 2024-04-27 12:30:58 +00:00
fonts Use custom font (#2343) 2023-12-19 14:17:45 +00:00
icons/icon serve icons via a single merged .svg file (#4150) 2024-07-15 11:03:11 +00:00
translations sdk: wires up tldraw to have licensing mechanisms (#4021) 2024-07-11 11:49:18 +00:00
watermarks sdk: wires up tldraw to have licensing mechanisms (#4021) 2024-07-11 11:49:18 +00:00
card-repo.png Update README (#2444) 2024-01-10 14:58:44 +00:00
card_repo.svg Update README (#2444) 2024-01-10 14:58:44 +00:00
github-hero-dark-draw.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-dark.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-light-2.png Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00
github-hero-light-draw.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-light.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero_dark-2.png Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00