JQuery mousemove performance
When I bind the mousemove event to an element, it works smoothly with every browser except Internet Explorer. In IE, CPU usage is too much and some related things (like tooltip) are ugly. Is there a way to get rid of the performance issue? (yes I know don't use IE :))
UPDATE: Even if I don't do anything in the event handler function, the CPU usage is still high. Here's my code:
$("#container").live("mousemove", function(e){
});
This is normal?
a source to share
Are you using jquery selector on mousemove event? I've seen cases where jquery selectors get slower on complex pages, if you put a selector on an event that fires many times there is a noticeable lag. In many cases you can just keep the jquery reference to the element until mousemove, then mousemove uses the reference to the element instead of reusing the selector that internally iterates over the DOM every time it is called.
a source to share