Does anyone have experience using fabric.js in multiple templates?. I have a simple test app using flowrouter and blaze with two identical templates (apart from the names) and the lamatyus:fabric package to give me the fabric.js canvas library.
I navigate between these repeatedly and the memory use just keeps climbing.
In the safari timeline view I can record and take snapshots, when I look at a snapshot there as many HTMLCanvasElements as navigations all 48mb in size!
Something is referencing the DOM - script preventing the GC from freeing these, these seem to become detached DOM elements.
If I comment out the canvas = new fabric() line the memory leak is far less but the canvas elements are still not GC’d
Anyone got any thoughts please?