scaleflex/js-cloudimage-responsive

Using placeholder image breaks mobile calculation

TimTilroy opened this issue · 3 comments

Hello,

We are using the plugin to load most of our images on both desktop and mobile.
It's working great however we recently added a placeholder image of 1x1px to make sure no broken image shows during page load.
This seems to have broken the calculation of the image width on mobile screens with a higher density.
An example is visible on the frontpage of https://www.ava.be. On mobile the first image is very bad quality compared to how it was before.

See these examples:
cloudimage-responsive-bq
cloudimage-responsive-gq

Any way we can fix this problem?
We are using the latest version of the plugin (2.1.0).

Regards

@TimTilroy , hey

I'll check the issue during the week. Busy with launching another project

@TimTilroy, hey

fixed in v2.2.0

Thanks Dmitry!

We are upgrading the plugin in our next release.

Regards