|
|
|
|
|
by dan-robertson
2847 days ago
|
|
I think this is wrong though. If you do a bit of trivial jquery to every element of a list, every time someone changes the “selected” element, then that could count as lots of jquery calls, even though there are few call-sites and not much to change to remove it. I think the more concerning call would actually be some crazy selector, animation, and implicit state change which could be done in just a few calls that happen rarely. With this in mind I think the right metric is #call-sites and not #calls: most of the time the effort required to refactor a jquery call away is not proportional to the number of times the function is called. |
|