I intend to have a FabricJS canvas that will display potentially dozens of different graphic elements that can be served as separate image files or sprites. For each graphic, it is possible that a specific graphic file will be displayed on the canvas 0 to dozens of times. I know that FabricJS has the ability to clipping , which would allow the use of sprites, and I know that, generally speaking, sprites on the Internet are very preferable over individual images, for example, for CSS.
However, I also heard about the browser behavior / quirks surrounding the canvas, where some of the optimizations you might expect are not - I cannot find the link at the moment, but I remember how large elements of the canvas contents will be inaccessible to view in Chrome, it will still take a considerable amount of time to be computed / βvisualizedβ, despite the fact that it is not related to the appearance on the screen.
So, are there any known expectations as to whether n individual uncroped images would be preferable / not available for a sprite that was cropped n times for FabricJS canvas? In case it matters, it will not be a heavily animated FabricJS canvas; things can move when dragging, for example, but constant animation is not what is involved in this case.
source share