tubalmartin / riloadr

Riloadr - A cross-browser framework-independent responsive images loader written in Javascript.
MIT License
646 stars 41 forks source link

Only showing mobile breakpoint for iPad #18

Closed daleyjem closed 10 years ago

daleyjem commented 10 years ago

I have the following code:

// Responsive image loading (riloadr) var riloadrDefaultGroup = new Riloadr({ breakpoints: [ {name: 'mobile', maxWidth: 699}, {name: 'tablet', minWidth: 700, maxWidth: 959}, {name: 'desktop', minWidth: 960} ], watchViewportWidth: '*' });

If I'm on desktop and resize my browser, everything works correctly. Image src's swap out while resizing, and only one of the 3 images loads on refresh.

What is happening with iPad that it only cares for the maxWidth: 699 breakpoint?

daleyjem commented 10 years ago

Nevermind... Didn't get the concept of minDevicePixelRatio