PageSourceSearch

https://veryceleb.com/wp-content/cache/autoptimize/js/autoptimize_single_04891b9267573e564c2c276fbf96d9cd.js

js veryceleb.com collected 2026-10-02 17:13:22 UTC 2,548 bytes, 13 lines download raw bytes

vendor: 2,548 bytes, lines 1-13
1(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global.retinajs=factory());}(this,(function(){'use strict';var hasWindow=typeof window!=='undefined';var environment=Math.round(hasWindow?window.devicePixelRatio||1:1);var srcReplace=/(\.[A-z]{3,4}\/?(\?.*)?)$/;var inlineReplace=/url\(('|")?([^)'"]+)('|")?\)/i;var selector='[data-rjs]';var processedAttr='data-rjs-processed';function arrayify(object){return Array.prototype.slice.call(object);}
2function chooseCap(cap){var numericCap=parseInt(cap,10);if(environment<numericCap){return environment;}else{return numericCap;}}
3function forceOriginalDimensions(image){if(!image.hasAttribute('data-no-resize')){if(image.offsetWidth===0&&image.offsetHeight===0){image.setAttribute('width',image.naturalWidth);image.setAttribute('height',image.naturalHeight);}else{image.setAttribute('width',image.offsetWidth);image.setAttribute('height',image.offsetHeight);}}
4return image;}
5function setSourceIfAvailable(image,retinaURL){var imgType=image.nodeName.toLowerCase();var testImage=document.createElement('img');testImage.addEventListener('load',function(){if(imgType==='img'){forceOriginalDimensions(image).setAttribute('src',retinaURL);}else{image.style.backgroundImage='url('+retinaURL+')';}});testImage.setAttribute('src',retinaURL);image.setAttribute(processedAttr,true);}
6function dynamicSwapImage(image,src){var rjs=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var cap=chooseCap(rjs);if(src&&cap>1){var newSrc=src.replace(srcReplace,'@'+cap+'x$1');setSourceIfAvailable(image,newSrc);}}
7function manualSwapImage(image,src,hdsrc){if(environment>1){setSourceIfAvailable(image,hdsrc);}}
8function getImages(images){if(!images){return typeof document!=='undefined'?arrayify(document.querySelectorAll(selector)):[];}else{return typeof images.forEach==='function'?images:arrayify(images);}}
9function cleanBgImg(img){return img.style.backgroundImage.replace(inlineReplace,'$2');}
10function retina(images){getImages(images).forEach(function(img){if(!img.getAttribute(processedAttr)){var isImg=img.nodeName.toLowerCase()==='img';var src=isImg?img.getAttribute('src'):cleanBgImg(img);var rjs=img.getAttribute('data-rjs');var rjsIsNumber=!isNaN(parseInt(rjs,10));if(rjs===null){return;}
11if(rjsIsNumber){dynamicSwapImage(img,src,rjs);}else{manualSwapImage(img,src,rjs);}}});}
12if(hasWindow){window.addEventListener('load',function(){retina();});window.retinajs=retina;}
13return retina;})));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.