tldraw/apps
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
..
apps-script google meet: add hardware whiteboard integration (#3765) 2024-05-20 14:52:05 +00:00
bemo-worker [5/5] Move bemo from dotcom to examples (#4135) 2024-07-12 10:36:31 +00:00
docs [bemo] No public shared rooms in examples app (#4152) 2024-07-12 13:07:07 +00:00
dotcom serve icons via a single merged .svg file (#4150) 2024-07-15 11:03:11 +00:00
dotcom-asset-upload introduce images.tldraw.xyz image optimisation worker (#4069) 2024-07-08 16:25:53 +00:00
dotcom-worker [bemo] allow custom shapes (#4144) 2024-07-11 13:48:14 +00:00
examples fix bemo url in examples app (#4156) 2024-07-12 14:39:08 +00:00
health-worker main: fix health worker wrnagler names 2024-07-01 15:44:30 +01:00
huppy followups to z-index and PR template (#4054) 2024-07-09 09:22:43 +00:00
images.tldraw.xyz introduce images.tldraw.xyz image optimisation worker (#4069) 2024-07-08 16:25:53 +00:00
vscode Unify menus. Disable erroring. (#4143) 2024-07-12 06:58:56 +00:00