I've implemented an iOS application based on mgwt and PhoneGap.
I have an image
<g:Image url="resources/img/topMenuTitle.png"></g:Image>
and two corresponding files topMenuTitle.png
(320px by 40px) and topMenuTitle@2x.png
(640px by 80px).
I don't know what's the best way to show the image in retina display when applied (ie, load topMenuTitle@2x.png
when the device supports retina display and topMenuTitle.png
otherwise).
So far I tried to use retina.js
but it didn't work. My guess is that Retinajs processes pictures at the moment the page loads, and it does not process images that will show up later.