I have used these two methods a lot of time.but some time I have seen where unusual behaviour in web pages while calling functions or other parts Inside them.
I want to know what types of activity one should do in document.ready() and what is document.load()?
document.ready() is the standard technique that’s used with jQuery, which waits until the DOM has been loaded before running your code. jQuery also has a shortcut where you pas the function directly to the jQuery object, which achieves the same thing:
$(function () {
...
});
document.load() waits for longer until after everything has been loaded, images and all. This one has been deprecated though due to the .on() technique being preferred instead.