Retina, the lazy way? -



Retina, the lazy way? -

i plan on building simple static site using bootstrap, which, knowledge, not have built-in back upwards retina images foundation does. i'm curious, what's stopping me making imagery site double intended size (e.g. 600x300) , shrinking when placing in code?

<img src="myimage.png" width="300" height="150">

the problem can think of images quite big in file size. in case, may need find retina js lib works bootstrap. , continuing on theme of laziness, work bower , grunt far injecting code.

you can seek lazysizes in conjunction respimage. code this:

<img data-sizes="auto" src="lqip-src.jpg" data-srcset="lqip-src.jpg 100w, image2.jpg 300w, image3.jpg 600w, image4.jpg 900w" class="lazyload" />

retina-display retina

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -