I use jQuery a lot, especially for animations like fading or gliding :)
so I add various functions that do this on elements like
$(".fade").each(function(....)
or
$('*[class*="slide-"]').each(function(...)...
In some elements, I use livequery without specifying an event (so that it detects new elements being added to the DOM).
$('*[class*="slide-"]').livequery(function(...
This uses a lot of CPU.
In any case, I ask if there is an application or something like a code profiler that can show me how much the CPU uses each of these functions that are connected to selectors / events.
javascript jquery dom html
Alex
source share