How to use requestAnimationFrame in mousemove event?
问题 In my SVG based web application, a user can select a large number of shapes (even 800 or more) & move them about on the screen, which as one can imagine severely impacts the framerate. After reading the merits of requestAnimationFrame , I have been working since yesterday trying to incorporate it into my mousemove function, with the hope that by using a combination of throttling & requestAnimationFrame , I can get to a smooth framerate. Here is the jsFiddle in which I am moving 600 svg shapes