joshje / Responsive-Enhance

Javascript to load a larger image where necessary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monitor not working when width decreases ...

mdmoura opened this issue · comments

Hello,

When setting Monitor = True the image full version is loaded when width becomes larger than 400px.

However, when the window width is decreased to less than 400 the image is not refreshed to its smaller version.

Any idea of how to solve this?

Thank You,
Miguel

The idea behind this technique is that we don't download more data than necessary on smaller screens. If the larger image has already been downloaded, then we don't need to swap the image anymore as there would be no benefit with regard to file downloads.

Does this explain what you are seeing, or are you seeing some other behaviour?