The Ready:jquery method executes when the DOM is loaded in readiness. (not including pictures and other non-text media files)
It can greatly improve the responsiveness of Web applications.
There is a parameter--a reference to the jquery function--is passed to the ready event handler. You can give this parameter any name, and you can safely use the $ alias without worrying about naming conflicts.
Make sure that no function is registered in the OnLoad event of the <body> element, otherwise the +$ (document). Ready () event is not triggered.
You can use the $ (document). Ready () event indefinitely on the same page. The functions that are registered are executed sequentially in order (in the code).
There can be more than one, the program executes sequentially
Onload:js method, the OnLoad event occurs immediately after the page or image has finished loading. And only one is allowed to exist;
You can choose according to what you want to load: There are pictures and other non-text media placed in the onload loading, the other can be loaded in ready;
Ready and onload