You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
620 B
17 lines
620 B
if (typeof ewww_webp_supported === 'undefined') {
|
|
var ewww_webp_supported = false;
|
|
}
|
|
window.lazySizesConfig = window.lazySizesConfig || {};
|
|
window.lazySizesConfig.expand = document.documentElement.clientHeight > 500 && document.documentElement.clientWidth > 500 ? 1000 : 740;
|
|
if (typeof eio_lazy_vars === 'undefined'){
|
|
console.log('setting failsafe lazy vars');
|
|
eio_lazy_vars = {
|
|
exactdn_domain: '.exactdn.com',
|
|
threshold: 0,
|
|
skip_autoscale: 0,
|
|
};
|
|
}
|
|
if (eio_lazy_vars.threshold > 50) {
|
|
window.lazySizesConfig.expand = eio_lazy_vars.threshold;
|
|
}
|
|
console.log( 'root margin: ' + window.lazySizesConfig.expand );
|
|
|