I would like to show SP.UI.ModalDialog until I process and bind the data to data table. Can any one please do let me know what's wrong in it.
$(document).ready(function() {
//alert("Hello World");
var dialog = SP.UI.ModalDialog.showWaitScreenWithNoClose('Processing...', 'Request is in progress...' );
function1();function2();function3();
dialog .close();
});