I am currently working on asp.net mvc and implementing ajax into it.
I tested one thing that whether the jquery $(function... ) will load first or asp.net ajax pageLoad() function.
function pageLoad() {alert("Page Loaded");
}
// Jquery loads first
$(
function() { alert("Jquery loaded"); })