PageSourceSearch

https://www.beechnut.com/wp-content/themes/beechnut/library/js/libs/yall.min.js

js beechnut.com collected 2026-09-25 18:53:20 UTC 3,673 bytes, 3 lines download raw bytes

1"use strict";var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},yall=function(e){var a=function(a){if("IMG"===a.tagName){var e=a.parentNode;if("PICTURE"===e.tagName&&[].slice.call(e.querySelectorAll("source")).forEach(function(e){return t(e)}),!0===n.asyncDecodeSupport&&!0===n.replaceWithSupport){var o=new Image;t(o,a),o.decode().then(function(){for(var e=0;e<a.attributes.length;e++){var t=a.attributes[e].name,r=a.attributes[e].value;-1===n.ignoredImgAttributes.indexOf(t)&&o.setAttribute(t,r)}a.replaceWith(o)})}else t(a)}"VIDEO"===a.tagName&&([].slice.call(a.querySelectorAll("source")).forEach(function(e){return t(e)}),a.load()),"IFRAME"===a.tagName&&(a.src=a.dataset.src,a.removeAttribute("data-src")),a.classList.contains(i.lazyBackgroundClass)&&(a.classList.remove(i.lazyBackgroundClass),a.classList.add(i.lazyBackgroundLoaded))},t=function(e){var t=(1<arguments.length&&void 0!==arguments[1]&&arguments[1]).dataset||e.dataset;for(var r in t)-1!==n.acceptedDataAttributes.indexOf("data-"+r)&&(e.setAttribute(r,t[r]),e.removeAttribute("data-"+r))},r=function yallBack(){var e=!1;!1===e&&0<l.length&&(e=!0,setTimeout(function(){l.forEach(function(t){t.getBoundingClientRect().top<=window.innerHeight+i.threshold&&t.getBoundingClientRect().bottom>=-i.threshold&&"none"!==getComputedStyle(t).display&&(!0===i.idlyLoad&&!0===n.idleCallbackSupport?requestIdleCallback(function(){a(t)},c):a(t),t.classList.remove(i.lazyClass),l=l.filter(function(e){return e!==t}))}),e=!1,0===l.length&&!1===i.observeChanges&&n.eventsToBind.forEach(function(e){return e[0].removeEventListener(e[1],yallBack)})},i.throttleTime))},o=new Image,n={intersectionObserverSupport:"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,mutationObserverSupport:"MutationObserver"in window,idleCallbackSupport:"requestIdleCallback"in window,asyncDecodeSupport:"decode"in o,replaceWithSupport:"replaceWith"in o,ignoredImgAttributes:["data-src","data-sizes","data-media","data-srcset","src","srcset"],acceptedDataAttributes:["data-src","data-sizes","data-media","data-srcset"],eventsToBind:[[document,"scroll"],[document,"touchmove"],[window,"resize"],[window,"orientationchange"]]},i=d({lazyClass:"lazy",lazyBackgroundClass:"lazy-bg",lazyBackgroundLoaded:"lazy-bg-loaded",throttleTime:200,idlyLoad:!1,idleLoadTimeout:100,threshold:200,observeChanges:!1,observeRootSelector:"body",mutationObserverOptions:{childList:!0}},e),s="img."+i.lazyClass+",video."+i.lazyClass+",iframe."+i.lazyClass+",."+i.lazyBackgroundClass,c={timeout:i.idleLoadTimeout},l=[].slice.call(document.querySelectorAll(s));if(!0===n.intersectionObserverSupport){var u=new IntersectionObserver(function(e,r){e.forEach(function(e){if(!0===e.isIntersecting||0<e.intersectionRatio){var t=e.target;!0===i.idlyLoad&&!0===n.idleCallbackSupport?requestIdleCallback(function(){a(t)},c):a(t),t.classList.remove(i.lazyClass),r.unobserve(t),l=l.filter(function(e){return e!==t})}})},{rootMargin:i.threshold+"px 0%"});l.forEach(function(e){return u.observe(e)})}else n.eventsToBind.forEach(function(e){return e[0].addEventListener(e[1],r)}),r();!0===n.mutationObserverSupport&&!0===i.observeChanges&&new MutationObserver(function(e){e.forEach(function(e){[].slice.call(document.querySelectorAll(s)).forEach(function(e){-1===l.indexOf(e)&&(l.push(e),!0===n.intersectionObserverSupport?u.observe(e):r())})})}).observe(document.querySelector(i.observeRootSelector),i.mutationObserverOptions)};
2
3document.addEventListener("DOMContentLoaded", yall);

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.