This file contains 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
// example HTML: | |
// <img class="background-image" src="images/mobile/everydaycare.jpg"> | |
// Description: Serve mobile image first, and swap directory if page is desktop | |
function swapImageMobileFirst() { | |
var $bgImages = $('img.background-image'); | |
var loadCount = 0; | |
$bgImages.each(function(){ | |
// Get image src |