$(document.body)
is using the global reference document
to get a reference to the body
, whereas $('body')
is a selector in which jQuery will get the reference to the
element on the document
.
No major difference that I can see, not any noticeable performance gain from one to the other.