This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A very mini jQuery highsrc plugin | |
// | |
// By Zach Inglis, edited by Pete Duncanson to make HTML5 friendly ish | |
// | |
// Example: | |
// <img src="logo.png" data-highsrc="logo.svg" /> | |
// | |
$(document).ready(function () { | |
if ( window.devicePixelRatio && window.devicePixelRatio > 1.5 ) { | |
jQuery("img[data-highsrc]").each(function() { |