I’ve been asked to help debug a pretty tattered hunk of jQuery. I’m finding the the block contains several occurrences of document.ready — often different variations of “ready” syntax.
Anyway, besides be horribly disorganized — is there a code execution impact when several of these events exist on the same page? A negative hit to performance? Or perhaps risk of race conditions or the like?
each .ready adds a handler to the list of handlers for the “ready” event. There is no race condition; they should be called in the order that they are added.