Changes

Basic webp support
Line 334: Line 334:  
setTimeout(function() { initializeStickyHeader(); }, 1000);
 
setTimeout(function() { initializeStickyHeader(); }, 1000);
 
//})
 
//})
 +
 +
// Basic webp support
 +
 +
$('.webp').each(function () {
 +
    const file = $(this).data('src');
 +
    const init = $(this).data('init');
 +
    if (!file || init) return;
 +
      $(this).append($('<img>').attr('src', 'https://en.kancollewiki.net/Special:Filepath/' + src));
 +
        $(this).data('init', true);
 +
});
 +
 
});
 
});
cssedit, gkautomate
6,926

edits