On my site I have a jquery function which retrieves data from another (secured) server as soon as the page is loaded. Using a jsonp call I currently load this data after doc
What I don't like about the above call, is that the jsonp can actually be exectued before the document ready event
are you sure about that?! please note you may still have images loading..etc
I guess you need to use:
$(window).load(function() {
$.getJSON(_secureHost + '/base/members/current.aspx?callback=?', function (data) {
initPage(data);
});
});
Link