readyit starts when only the DOM is ready, when it onloadstarts with all the resources of the page, including the DOM , images, frames, etc.
Cm:
$ (document) .ready vs. $ (window) .load
Note that readylies with jQuery and not with raw javascript, so I assume that you know that this comparison seems logical too.
source
share