If the page has two javaScript functions that should be called when the document is loaded. Is it possible that any function can be executed first or will it be the first function that is always always executed?
So, if you are using jQuery, if you have the following code:
$(document).ready(function(){ function1(); }); $(document).ready(function(){ function2(); });
Could it happen that function2 is executed first or will function1 always be executed first?
source share