Just a small theoretical performance question:
if I have something like:
$(".somediv").each(function() {
// perform some heavy stuff here
});
Would the execution of the code not be faster if I refactored the code of the anonymous function to a named function like :
f = function() {
// perform some heavy stuff here
};
$(".somediv").each(f);
Somehow I have this irrational doubt that tells me that perhaps the anonymous function is re-created each time within the each loop?