$(document).ready(function () { //other things to do on document ready, separated for ajax calls docReady(); }); function docReady() { }