{:uriI"file:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure.js?type=application/javascript&id=6bc8f9d823b2e853b370fe57b6b45d48411628394335c707777d1745fb1cc59b:ET:load_pathI">/Users/izik/www/sparse/izi_lightup/app/assets/javascripts;T: filenameI"T/Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure.js;T: nameI"crit-utils/measure;T:logical_pathI"crit-utils/measure.js;T:content_typeI"application/javascript;T: sourceI"(function (window) { var LCS_BAD, LCS_OK, MAX_TIMEOUT, TTL_TIMEOUT, $$ttlTimeout; LCS_OK = 0.1; LCS_BAD = 0.25; TTL_TIMEOUT = 3000; MAX_TIMEOUT = 15000; function $$print(msg, value) { var info_css, result_css, tag, tag_css; info_css = "color: silver;"; if (value >= LCS_BAD) { result_css = "color: red; font-weight: bold;"; tag_css = "color: red; font-weight: bold;"; tag = "ERROR"; } else if (value >= LCS_OK) { result_css = "color: orange; font-style: italic;"; tag_css = "color: orange; font-weight: bold;"; tag = "WARN"; } else { result_css = "color: green;"; tag_css = "color: green; font-weight: bold;"; tag = "OK"; } console.debug("%cMEASURE: %c<%s> %c%s", info_css, tag_css, tag, result_css, msg); }; function $$cls() { var $$finTimeout, $perf, clsValue = 0; function $$unsub() { $perf.disconnect("layout-shift"); if ($$ttlTimeout) clearTimeout($$ttlTimeout); if ($$finTimeout) clearTimeout($$finTimeout); $$ttlTimeout = $$finTimeout = undefined; $$print("result " + (clsValue.toFixed(3)), clsValue); }; $perf = new PerformanceObserver(function (list) { var entries, entry; if ($$ttlTimeout) clearTimeout($$ttlTimeout); $$ttlTimeout = setTimeout($$unsub, TTL_TIMEOUT); entries = list.getEntries(); for (var i = 0; i < entries.length; i++) { entry = entries[i]; if (entry.hadRecentInput) continue; clsValue += entry.value; $$print("lcs updated " + (clsValue.toFixed(3)) + "(+" + (entry.value.toFixed(3)) + ")", clsValue); } }); console.debug("INIT LCS COUNTER..."); $perf.observe({ type: "layout-shift", buffered: true }); $$finTimeout = setTimeout($$unsub, MAX_TIMEOUT); }; setTimeout(function () { // skip headless if (/\bHeadlessChrome\//.test(navigator.userAgent)) return; // skip if initial-scrolled if (window.scrollY > 300) return; $$cls(); }, 1); })(window); ;T: metadata{ :dependencieso:Set: @hash}I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"bfile-digest:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure/cls.js;TTI"_file-digest:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure;TTI"cfile-digest:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure/cls;TTF: linkso;;}F: included[I"file:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure/cls.js?type=application/javascript&pipeline=self&id=65aefceed64f4cbb96bf510829569d16575b56be1825ba2c9bc23767ee93639d;TI"file:///Users/izik/www/sparse/izi_lightup/app/assets/javascripts/crit-utils/measure.js?type=application/javascript&pipeline=self&id=6f273b0d942a4ccde8cd4ec0c849626301b370f228ccd9c27421073c9416e153;T: charsetI" utf-8;F: digest"%'B[0@d>KmeC@b5!o: lengthi:dependencies_digest"%?+E0L X>g':idI"E6bc8f9d823b2e853b370fe57b6b45d48411628394335c707777d1745fb1cc59b;F: mtimel+f^b