jrief / angular-retina

Add support for Retina displays when using element attribute "ng-src"
MIT License
120 stars 32 forks source link

image is not loaded when page's rendered on phonegap #3

Closed lancevo closed 9 years ago

lancevo commented 11 years ago

It works fine on desktop, but on iOS simulator/iPhone it's not rendered when page is first rendered, but if i swipe to another page and come back then it appears. It could be a racing condition that image is rendered in DOM before angular-retina.js is executed. Btw, I load the angular-retina.js right after angular.js.

Please let me know if there's a way to delay the rendering of the image so angular-retina.js can replace all the image srcs before displaying the images.

Thanks Lance

jrief commented 11 years ago

Could you please send me a code snipped of your HTML, preferably on jsfiddle or http://plnkr.co/ BTW, I can't test on iPhone Retina, because I don't have any.

faceleg commented 9 years ago

Closing due to inactivity.