waiting popup loading logic

Loader will start at page DOM ready or first ajax request or loading iFrame and end when page loads completely, all ajax request complete and iFrame loaded. To make loader to start for iFrame, you need to call attachIframeEvent() method where u defining iFrame.