javascript - jquery: listing out ready handlers -
i'm trying trace slowdown on load of web page in our application , there's ton of javascript go through i'd rather not process them individually.
i'm trying see if there's way list out event handlers added $(document).ready()
through handlers see might causing problem.
is there way this?
i able overriding jquery's ready function store references handlers, i.e.
var readylist = []; var origready = jquery.fn.ready; jquery.fn.ready = function() { if ((arguments.length) && (arguments.length > 0) && (typeof arguments[0] === 'function')) { readylist.push(arguments[0]); } origready.apply(this, arguments); }
Comments
Post a Comment