{"version":3,"sources":["priory.lazyLoadImages.js"],"names":["document","addEventListener","images","querySelectorAll","windowHeight","window","innerHeight","forEach","img","getBoundingClientRect","top","setAttribute"],"mappings":"AAAAA,SAASC,iBAAiB,mBAAoB,WAC5C,MAAMC,EAASF,SAASG,iBAAiB,uBACnCC,EAAeC,OAAOC,YAC5BJ,EAAOK,QAAQC,IACTA,EAAIC,wBAAwBC,KAAON,GACrCI,EAAIG,aAAa,UAAW","sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function() {\r\n const images = document.querySelectorAll('img[loading=\"lazy\"]');\r\n const windowHeight = window.innerHeight;\r\n\r\n images.forEach(img => {\r\n if (img.getBoundingClientRect().top <= windowHeight) {\r\n img.setAttribute('loading', 'eager'); // Change to eager loading for above-the-fold images\r\n }\r\n });\r\n});"],"file":"priory.lazyLoadImages-min.js"}