...

/

Using canvas

Using canvas

We’ve been using SVG to render our apps so far. SVG is great because it follows a familiar structure, offers infinitely scalable vector graphics, and works pretty much everywhere. Sure, you can’t use some fancy SVG features on all browsers, but the basics are solid.

However, SVG has a big flaw: it’s slow.

Anything more than a few hundred SVG nodes and your browser will struggle. Especially if you want to animate those thousands of elements.

A panelist at ForwardJS once asked me, “But why would you want that?”. It was my first time participating in a panel, and my answer sucked. What I should have said was, “Because there have been thousands of UFO sightings, there are thousands of counties in the US, millions of taxi rides, hundreds of millions of people having this or that ...

Access this course and 1400+ top-rated courses and projects.