Bind events on body or document?
javascript, jquery, jquery-events
Solution
For me, there is mainly one reason to bind the events on `$(document)` and not to `$('body')`:
no need to wait domReady (document is available before everything else)
Problem
Sometimes the users bind the events on `$('body')` and sometimes on `$(document)` ``` $(document).on('click', someAction); $('body').on('click', someAction); ``` Is there some reason to prefer one to another?