PageSourceSearch

https://barysh-eparhia.ru/js/perf.js

js barysh-eparhia.ru collected 2026-10-02 18:15:36 UTC 598 bytes, 16 lines download raw bytes

1/* Performance helpers for public pages.
2 * - Adds lazy-loading and async decoding for images.
3 * - Avoids touching header/logo (above the fold).
4 */
5
6document.addEventListener('DOMContentLoaded', function () {
7  var images = document.querySelectorAll('img');
8  for (var i = 0; i < images.length; i++) {
9    var img = images[i];
10    if (img.closest && img.closest('.head')) continue;
11    if (img.hasAttribute('data-no-lazy')) continue;
12    if (!img.hasAttribute('loading')) img.setAttribute('loading', 'lazy');
13    if (!img.hasAttribute('decoding')) img.setAttribute('decoding', 'async');
14  }
15});
16

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.