The fastest way would be $(document.body)
.
This doesn’t involve any selector parsing.
$('body')
is much faster (in Firefox and Chrome) than $('#body')
.
The fastest way would be $(document.body)
.
This doesn’t involve any selector parsing.
$('body')
is much faster (in Firefox and Chrome) than $('#body')
.