Lock screen with out Thread.sleep or giving some amount of time in jquery
<p>Hi all I am having a requirement where I have to show loading image when I perform any operation. I have gone through several blogs and articles, but all of them are doing some thing like giving some amount of time in Jquery or the scripts used, or using <code>Thread.Sleep</code> method.</p>

<p>Is it possible to do with out these two. Means I don't know how much time it takes to load a page, until and unless the page get loaded I would like to show the waiting screen for the user.</p>
