My only criticism would be that the code uses `element.appendChild(canvas);` - if the element already contains child elements then the generated canvas is going to go over them, blocking any user interaction associated with them - for example, links. I think `element.prepend(canvas)` would give a better UX?
My only criticism would be that the code uses `element.appendChild(canvas);` - if the element already contains child elements then the generated canvas is going to go over them, blocking any user interaction associated with them - for example, links. I think `element.prepend(canvas)` would give a better UX?