Closed thom4parisot closed 10 years ago
Don't waste radio effort to download a better quality image as the browser can just redimension it.
<div style="width: 480px"> <img src="/assets/480/example.jpg" data-src="/assets/{width}/example.jpg" class="responsive-img"> </div>
Should become:
<div style="width: 240px"> <img src="/assets/480/example.jpg" data-src="/assets/{width}/example.jpg" class="responsive-img"> </div>
Instead of:
<div style="width: 240px"> <img src="/assets/240/example.jpg" data-src="/assets/{width}/example.jpg" class="responsive-img"> </div>
I guess waking up the radio has a much higher latency though. To be confirmed.
^ Resize? Resize? No Resize!
tl;dr
Don't waste radio effort to download a better quality image as the browser can just redimension it.
Use Case
Should become:
Instead of:
Pros
Cons
Interrogations
I guess waking up the radio has a much higher latency though. To be confirmed.
^ Resize? Resize? No Resize!