If have two javaScript functions in a page which are required to be called when document load is complete. Is is possible that any function can executed first or it will be the first function which is executed first always?
So if using jQuery if you have following code:
$(document).ready(function(){ function1(); });
$(document).ready(function(){ function2(); });
Can it happen that function2
is executed first or will function1
always be executed first ?