Popups flickering on multi-page template

Popups flickering on multi-page template

Hi,

   I have a jQM multi-page template in a single html where each page has one or two divs as popup as per this example: http://demos.jquerymobile.com/1.4.5/popup-image-scaling/ . It works just fine on Android and also on desktop but somehow only on iOS, while popup shows okay, when closing the popup it flashes intermittently. I have tried various things: such as move popup div just after the link that opens the popup, make popup div sibling of the page header, popup with animation disabled, disable data transitions on all links but the problem persists, no matter what, and only on iOS webview somehow.

Has anybody encountered this and, if so, has any suggestions?

Thanks in advance and regards