jQuery – Looking ‘under the hood’.

Something I stumbled across when I wanted to hook into all my custom $.event.trigger(); jQuery events, to see what was going on without having to console.log every single one of them. To my surprise, it produced much more events than just my own. Apparently jQuery uses its own event.trigger method a lot (which I did not know).

So, make your console light up like a Christmas-tree by exposing nearly all events fired within jQuery (including those you cause with your own scripts) by adding this code: