[jQuery] drawing on mousemove - performance problem
Is there a way to reduce the cpu load when I do something like this
(and move the pointer very fast on the screen):
$(document).mousemove(function(e) {
x = e.pageX;
y = e.pageY;
draw([x,y]);
});
Something like, "wait until the browser is ready" ?