Swap high resolution images on non-mobile high ppi displays
How to Use
Include hippify.min.js before
Include high resolution image with @2x before extention in the same directory
images - image.jpg - email@example.com
Add class .hippify to image tag
<img class="hippify" src="image.jpg" />
If it's relative pathing, this will automatically swap to your @2x image after a test to make sure it exists.
If your files are remote or would prefer to specify your replacement image path, add attribute data-hippi-src="firstname.lastname@example.org" to your image tag
<img class="hippify" src="image.jpg" data-hippi-src="email@example.com" />
Please note, if files are not relative, no check will be made to see if the file exists.