Closed ericnograles closed 4 years ago
Everytime the function is called, it creates a new img and canvas tag; this can lead to performance issues on UI's of scale. (See #18)
img
canvas
var
let
Summary
Everytime the function is called, it creates a new img and canvas tag; this can lead to performance issues on UI's of scale. (See #18)
Fix Details
img
andcanvas
are now hoisted in the modulevar
withlet
's for cleanliness