3 ms·
Load performance is mostly due to the few number of files that are being included, though minification also helps. Application performance is typical of modern
by moron4hire 12y ago
Load performance is mostly due to the few number of files that are being included, though minification also helps.
Application performance is typical of modern, hand-coded JS. Or rather, I should say, the only reason I can see for why people tolerate bloated frameworks is because they've just come to expect JS to be slow. There is a reason some of us insist on sticking to vanilla JS. It's not because we're crotchety, old, greybeards. We wouldn't be touching JS at all if that were the case.
It appears they might also be using layered canvases to render different parts of the workspace that update at different rates. So that prevents them from having to redraw the checkered background every time you move the drawing. And it prevents them from having to redraw the existing drawing every time you add a new element and are still adjusting it.
Pretty standard techniques for anyone with experience working with Canvas, actually.