How it works When your users load a page, retina.js checks each image on the page to see if there is a high-resolution version of that image on your server. If a high-resolution variant exists, the script will swap in that image in-place.
Daily Archives: December 21, 2012
How to determine the first and last iteration in a foreach loop?
If your array has unique array values, then determining the first and last element is trivial: