Look into how to implement a visualiser that does not use so much CPU. Use a combination of the following - https://developers.google.com/web/updates/2018/08/offscreen-canvas - https://github.com/VincentGarreau/particles.js/pull/286/files#diff-9a1e88d959b3ac1759a39bf6640c18c4R1345