1import { executeJSmodules } from '@archetype-themes/utils/utils' 2 3class BackgroundImage extends HTMLElement { 4 connectedCallback() { 5 const element = this.querySelector('[data-section-type="background-image"]') 6 7 element.classList.remove('loading', 'loading--delayed') 8 element.classList.add('loaded') 9 10 if (Shopify.designMode && element.hasAttribute('data-parallax')) { 11 requestAnimationFrame(() => { 12 const scripts = this.querySelectorAll('script[type="module"]') 13 if (scripts.length) { 14 executeJSmodules(scripts) 15 } 16 }) 17 } 18 } 19} 20 21customElements.define('background-image', BackgroundImage)
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.