If you strictly follow .append() , you can simply fix it, for example:
var _origAppend = $.fn.append; $.appendCount = 0; $.fn.append = function() { $.appendCount++; return _origAppend.apply(this, arguments); };
Now you can simply access $.appendCount anytime to find out how often it was called. However, keep in mind that there are many functions that can manipulate the DOM. Perhaps a more sensible idea is to plan for jQuery.fn.domManip . This method is called internally mainly during any manipulations with dom (for example, you might suspect because of the name)
source share