Is it okay to have both wrapper functions in the same JavaScript file? For example, the main.js file which contains all of my site's scripts currently is using the $(window).load(function(){//...});
method and I was wondering if I could also utilize the $(document).ready(function(){//...});
method in the same script file?
$(document).ready(function() {
//Code here...
});
$(window).load(function() {
// Code here...
});