{"version":3,"sources":["webpack://App.[name]/./deferedImages.js"],"names":["$","window","load","imgDefer","document","querySelectorAll","i","length","dataset","src","replace"],"mappings":"qIAAA,yBAAQ,aAAE,WACN,aA4BAA,EAAEC,QAAQC,MAAK,WAGX,IAFA,IAAIC,EAAWC,SAASC,iBAAiB,qBAEhCC,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAC7BH,EAASG,GAAGE,QAAQC,KAAON,EAASG,GAAGG,MAAQN,EAASG,GAAGE,QAAQC,MACnEN,EAASG,GAAGG,IAAMN,EAASG,GAAGE,QAAQC,IAAIC,QAAQ,kDAAkD,sCAInH,WAtCO,MAsCP,sC","file":"18.chunk.js?v=c48f5608d018fa09beb6","sourcesContent":["require([], function() {\n 'use strict';\n\n /*\n This module is used to add defer loading capabilities to tags.\n It does this by adding an `onload` callback that: get all images that have a certain class name, and foreach one of them, change `data-src` attribute to `src` which trigger an image loading event. If the image loading failes, it will not default to the initial `src` which mean we still have to set a fallback in `onerror`.\n\n It'll run once on page load. We don't need to worry about partials reload or observing dom changes because we're just worried about the load event firing late (e.g. for websites favicons).\n\n Usage:\n Replace `src` with `data-src` and add a placeholder in `src`.\n Append `defer-loading` to `class`.\n\n Example:\n Before:\n \n After:\n \n\n */\n\n $(window).load(function() {\n var imgDefer = document.querySelectorAll('img.defer-loading');\n\n for (var i = 0; i < imgDefer.length; i++) {\n if (imgDefer[i].dataset.src && imgDefer[i].src !== imgDefer[i].dataset.src) {\n imgDefer[i].src = imgDefer[i].dataset.src.replace('http://itms8-imageservice.itunes.apple.com:8001','https://is2-ssl.mzstatic.com');\n }\n }\n });\n});\n"],"sourceRoot":""}