[{"data":1,"prerenderedAt":2045},["ShallowReactive",2],{"knowledge-routes":3,"en:footer-pages":643,"en:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base":656,"en:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base:navigation":2013,"en:related:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fkeyed-hydration,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Flayout-thrashing":2017,"en:graph:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base":2024},{"en":4,"zh":32},[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],"\u002Fshopify\u002Fshopify-app-boundaries","\u002Fshopify\u002Fshopify-app-distribution","\u002Fshopify\u002Fshopify-app-environment-strategy","\u002Fshopify\u002Fshopify-app-review-access","\u002Fshopify\u002Fshopify-app-usage-billing","\u002Fshopify\u002Fshopify-multiple-apps-shared-backend","\u002Fshopify\u002Fshopify-oauth-redirect-callback","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fadd-to-cart-race","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fkeyed-hydration","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Flayout-thrashing","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fliquid-smart-contrast","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fview-transitions","\u002Fshopify\u002Ftopics\u002Fapps-integrations","\u002Fdomains\u002Facquisition-marketing","\u002Fdomains\u002Fcustomer-service","\u002Fdomains\u002Fdata-analytics","\u002Fdomains\u002Ffinance-compliance","\u002Fdomains\u002Ffulfillment-logistics","\u002Fdomains\u002Fpayments","\u002Fdomains\u002Fplatform-development","\u002Fdomains\u002Fproduct-pricing","\u002Fdomains\u002Fretention","\u002Fdomains\u002Fstorefront-experience","\u002Fjourney\u002Fconvert","\u002Ffunnel\u002Fintent",[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,5,6,7,8,9,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,10,328,329,11,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,12,387,388,389,390,391,13,392,393,394,14,395,15,16,396,397,398,399,400,401,402,17,403,404,405,18,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,19,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,20,21,22,23,24,25,26,27,28,29,632,633,30,634,635,636,637,638,639,640,31,641,642],"\u002Fcommerce\u002Faccessibility-compliance-baseline","\u002Fcommerce\u002Fad-creative-testing","\u002Fcommerce\u002Fapi-authentication","\u002Fcommerce\u002Fapp-distribution-models","\u002Fcommerce\u002Fassortment-planning","\u002Fcommerce\u002Fattribution-basics","\u002Fcommerce\u002Faudiences-remarketing","\u002Fcommerce\u002Fcampaign-formats","\u002Fcommerce\u002Fcheckout-design","\u002Fcommerce\u002Fcheckout-funnel","\u002Fcommerce\u002Fclearance-sales","\u002Fcommerce\u002Fcohort-analysis","\u002Fcommerce\u002Fconsent-and-advertising","\u002Fcommerce\u002Fconsumer-protection-basics","\u002Fcommerce\u002Fcontent-acquisition","\u002Fcommerce\u002Fcontent-localization","\u002Fcommerce\u002Fcontent-repurposing","\u002Fcommerce\u002Fcross-border-basics","\u002Fcommerce\u002Fcustom-data-modeling","\u002Fcommerce\u002Fcustomer-account-access","\u002Fcommerce\u002Fcustomer-data-platform","\u002Fcommerce\u002Fcustomer-demand-validation","\u002Fcommerce\u002Fcustomer-feedback-analysis","\u002Fcommerce\u002Fcustomer-journey-models","\u002Fcommerce\u002Fcustomer-lifecycle-segmentation","\u002Fcommerce\u002Fcustomer-support-channels","\u002Fcommerce\u002Fdata-collection","\u002Fcommerce\u002Fdata-quality","\u002Fcommerce\u002Fdelivery-promise","\u002Fcommerce\u002Fdomain-dns-tls","\u002Fcommerce\u002Fdtc-customer-journey","\u002Fcommerce\u002Femail-sms-marketing","\u002Fcommerce\u002Fenvironments-permissions","\u002Fcommerce\u002Fevent-tracking-plan","\u002Fcommerce\u002Fexperimentation","\u002Fcommerce\u002Fflash-sales","\u002Fcommerce\u002Ffulfillment-delivery","\u002Fcommerce\u002Fgift-with-purchase-bundles","\u002Fcommerce\u002Fgiveaways-contests","\u002Fcommerce\u002Fheadless-commerce","\u002Fcommerce\u002Fidentity-resolution","\u002Fcommerce\u002Finfluencer-collaborations","\u002Fcommerce\u002Finventory-accuracy","\u002Fcommerce\u002Finventory-basics","\u002Fcommerce\u002Finventory-replenishment","\u002Fcommerce\u002Fjourney-stage-alignment","\u002Fcommerce\u002Floyalty-programs","\u002Fcommerce\u002Fmarketing-budget-pacing","\u002Fcommerce\u002Fmarketing-campaign-review","\u002Fcommerce\u002Fmarketing-contact-frequency","\u002Fcommerce\u002Fmarketing-funnel","\u002Fcommerce\u002Fmedia-asset-management","\u002Fcommerce\u002Fmetric-definitions","\u002Fcommerce\u002Forder-event-ad-spend-grain","\u002Fcommerce\u002Forder-unit-economics","\u002Fcommerce\u002Fpaid-acquisition-signals","\u002Fcommerce\u002Fpartial-page-updates","\u002Fcommerce\u002Fpayment-methods","\u002Fcommerce\u002Fpayments-chargebacks","\u002Fcommerce\u002Fpeak-season-campaigns","\u002Fcommerce\u002Fplatform-extension-points","\u002Fcommerce\u002Fpost-purchase-education","\u002Fcommerce\u002Fpre-orders","\u002Fcommerce\u002Fpricing-discounts","\u002Fcommerce\u002Fprivacy-consent-basics","\u002Fcommerce\u002Fproduct-information","\u002Fcommerce\u002Fproduct-launches-drops","\u002Fcommerce\u002Fproduct-search-visibility","\u002Fcommerce\u002Freferral-programs","\u002Fcommerce\u002Frepeat-purchase-retention","\u002Fcommerce\u002Freturns-refunds","\u002Fcommerce\u002Freverse-logistics","\u002Fcommerce\u002Freview-collection","\u002Fcommerce\u002Fsales-channel-publishing","\u002Fcommerce\u002Fsales-tax-vat-basics","\u002Fcommerce\u002Fshipping-rates-strategy","\u002Fcommerce\u002Fstaff-access-control","\u002Fcommerce\u002Fstorefront-component-lifecycle","\u002Fcommerce\u002Fstorefront-design-tokens","\u002Fcommerce\u002Fstorefront-release-validation","\u002Fcommerce\u002Fstorefront-rendering-performance","\u002Fcommerce\u002Fsubscription-commerce","\u002Fcommerce\u002Fthreshold-promotions","\u002Fcommerce\u002Ftransactional-notifications","\u002Fcommerce\u002Furl-redirects","\u002Fcommerce\u002Fusage-based-billing","\u002Fcommerce\u002Fwebhooks","\u002Fcommerce\u002Fwin-back","\u002Fcontent-types\u002Fbrand-story","\u002Fcontent-types\u002Fbrand-values","\u002Fcontent-types\u002Fcore-message","\u002Fcontent-types\u002Fcustomer-reviews","\u002Fcontent-types\u002Fcustomer-testimonials","\u002Fcontent-types\u002Femail-signup","\u002Fcontent-types\u002Ffaq","\u002Fcontent-types\u002Ffeatured-products","\u002Fcontent-types\u002Fguarantee","\u002Fcontent-types\u002Floyalty-rewards","\u002Fcontent-types\u002Fmedia-coverage","\u002Fcontent-types\u002Fpackage-contents","\u002Fcontent-types\u002Fpayment-options","\u002Fcontent-types\u002Fproduct-categories","\u002Fcontent-types\u002Fproduct-overview","\u002Fcontent-types\u002Fproduct-showcase","\u002Fcontent-types\u002Fproduct-specifications","\u002Fcontent-types\u002Fproduct-video","\u002Fcontent-types\u002Fpromotions","\u002Fcontent-types\u002Fproof-metrics","\u002Fcontent-types\u002Frelated-products","\u002Fcontent-types\u002Fresources","\u002Fcontent-types\u002Fshipping-delivery-info","\u002Fcontent-types\u002Fsocial-follow","\u002Fcontent-types\u002Fsupport-contact","\u002Fcontent-types\u002Fthird-party-reviews","\u002Fcontent-types\u002Ftrust-marks","\u002Fcontent-types\u002Ftypes","\u002Fcontent-types\u002Fuser-generated-content","\u002Felevar\u002Fshopify-delivery-chain","\u002Fgoogle-ads\u002Fdynamic-remarketing-feed","\u002Fgoogle-ads\u002Fenhanced-conversions-boundaries","\u002Fgoogle-ads\u002Ftransaction-id-and-reconciliation","\u002Fgoogle-analytics\u002Fcustom-dimensions-and-reconciliation","\u002Fgoogle-analytics\u002Fecommerce-event-mapping","\u002Fgoogle-analytics\u002Fmeasurement-protocol","\u002Fgoogle-analytics\u002Fpage-view-and-spa","\u002Fgoogle-analytics\u002Fproperty-stream-debugging","\u002Fgoogle-merchant-center\u002Fgoogle-ads-linking","\u002Fgoogle-merchant-center\u002Fproduct-feed-review","\u002Fgoogle-tag-manager\u002Fconsent-trigger-troubleshooting","\u002Fgoogle-tag-manager\u002Fcontainers-and-publishing","\u002Fgoogle-tag-manager\u002Fdata-layer-events","\u002Fgoogle-tag-manager\u002Ftag-stack","\u002Fgorgias\u002Fmacros-automation","\u002Fgorgias\u002Ftickets-orders","\u002Fjudge-me\u002Freview-request-scheduling","\u002Fjudge-me\u002Freview-widget-verification","\u002Fklaviyo\u002Fdelivery-unsubscribe-troubleshooting","\u002Fklaviyo\u002Fflow-triggers-and-filters","\u002Fklaviyo\u002Fsubscription-consent-sources","\u002Fmeta-ads\u002Fcustomer-audience-sync","\u002Fmeta-ads\u002Fpixel-capi-event-mapping","\u002Fmeta-ads\u002Fpurchase-event-duplicates","\u002Fmodules\u002Favailability-notification","\u002Fmodules\u002Fbuy-box","\u002Fmodules\u002Fcart-summary","\u002Fmodules\u002Fcollection-browse-filter","\u002Fmodules\u002Fcookie-consent","\u002Fmodules\u002Fcross-sell-upsell","\u002Fmodules\u002Ffit-guidance","\u002Fmodules\u002Fpage-composition","\u002Fmodules\u002Fpatterns","\u002Fmodules\u002Fproduct-selection","\u002Fmodules\u002Fproduct-support-navigation","\u002Fmodules\u002Fpromotion-redemption","\u002Fmodules\u002Freview-display","\u002Fmodules\u002Fsignup-capture","\u002Fmodules\u002Fsite-search","\u002Fmodules\u002Fsocial-proof-strip","\u002Fmodules\u002Fsubscription-terms-summary","\u002Fmodules\u002Fvariant-media-gallery","\u002Fpaypal\u002Fcheckout-disputes","\u002Fpaypal\u002Frefund-not-received","\u002Fpaypal\u002Fsettlement-reconciliation","\u002Fpresentation\u002Faccordion","\u002Fpresentation\u002Fbadge","\u002Fpresentation\u002Fbanner","\u002Fpresentation\u002Fbefore-after","\u002Fpresentation\u002Fcallout","\u002Fpresentation\u002Fcards","\u002Fpresentation\u002Fcarousel","\u002Fpresentation\u002Fcomparison","\u002Fpresentation\u002Fcountdown-timer","\u002Fpresentation\u002Fdrawer","\u002Fpresentation\u002Fempty-state","\u002Fpresentation\u002Fgrid","\u002Fpresentation\u002Fhero","\u002Fpresentation\u002Fhotspot","\u002Fpresentation\u002Finline-form","\u002Fpresentation\u002Flist","\u002Fpresentation\u002Fmarquee","\u002Fpresentation\u002Fmasonry","\u002Fpresentation\u002Fmedia-gallery","\u002Fpresentation\u002Fmodal","\u002Fpresentation\u002Fnavigation-menu","\u002Fpresentation\u002Foverlay","\u002Fpresentation\u002Fpagination","\u002Fpresentation\u002Fpatterns","\u002Fpresentation\u002Fpopover","\u002Fpresentation\u002Fprogress-bar","\u002Fpresentation\u002Frating-stars","\u002Fpresentation\u002Fscroll-reveal","\u002Fpresentation\u002Fsingle-column","\u002Fpresentation\u002Fskeleton-loader","\u002Fpresentation\u002Fsplit","\u002Fpresentation\u002Fstepper","\u002Fpresentation\u002Fsticky-bar","\u002Fpresentation\u002Fswatch","\u002Fpresentation\u002Ftable","\u002Fpresentation\u002Ftabs","\u002Fpresentation\u002Ftimeline","\u002Fpresentation\u002Ftoast","\u002Fregulations\u002Fca-casl","\u002Fregulations\u002Fca-pipeda-consent","\u002Fregulations\u002Feu-accessibility-act","\u002Fregulations\u002Feu-consumer-rights","\u002Fregulations\u002Feu-gdpr-eprivacy-consent","\u002Fregulations\u002Feu-price-reduction-indication","\u002Fregulations\u002Feu-psd2-sca","\u002Fregulations\u002Feu-ucpd-reviews-ranking","\u002Fregulations\u002Feu-vat-oss-ioss","\u002Fregulations\u002Fuk-consumer-contracts","\u002Fregulations\u002Fuk-consumer-rights","\u002Fregulations\u002Fuk-dmcc-reviews-pricing","\u002Fregulations\u002Fuk-gdpr-pecr-consent","\u002Fregulations\u002Fuk-vat-overseas-sellers","\u002Fregulations\u002Fus-can-spam","\u002Fregulations\u002Fus-consumer-reviews-testimonials","\u002Fregulations\u002Fus-endorsement-guides","\u002Fregulations\u002Fus-mail-order-rule","\u002Fregulations\u002Fus-tcpa-text-consent","\u002Fshopify\u002Farticle","\u002Fshopify\u002Farticle\u002Fbuying-guide-article","\u002Fshopify\u002Farticle\u002Fhow-to-article","\u002Fshopify\u002Fblog","\u002Fshopify\u002Fcart","\u002Fshopify\u002Fcollection","\u002Fshopify\u002Fcollection\u002Fcampaign-collection-page","\u002Fshopify\u002Fcollection\u002Fcategory-collection-page","\u002Fshopify\u002Fdawn-vs-horizon","\u002Fshopify\u002Fdiscount-troubleshooting","\u002Fshopify\u002Femail-platform-comparison","\u002Fshopify\u002Fhomepage","\u002Fshopify\u002Finventory-mismatch","\u002Fshopify\u002Flist-collections","\u002Fshopify\u002Forder-analytics-reconciliation","\u002Fshopify\u002Fpage","\u002Fshopify\u002Fpage\u002Fabout-us","\u002Fshopify\u002Fpage\u002Fbrand-story","\u002Fshopify\u002Fpage\u002Fcampaign-landing","\u002Fshopify\u002Fpage\u002Fcontact-us","\u002Fshopify\u002Fpage\u002Ffaq","\u002Fshopify\u002Fpage\u002Fgiveaway","\u002Fshopify\u002Fpage\u002Floyalty-program","\u002Fshopify\u002Fpage\u002Forder-tracking","\u002Fshopify\u002Fpage\u002Fpolicies","\u002Fshopify\u002Fpage\u002Fpress","\u002Fshopify\u002Fpage\u002Freviews","\u002Fshopify\u002Fpage\u002Fshipping-returns","\u002Fshopify\u002Fpage\u002Fsize-guide","\u002Fshopify\u002Fpage\u002Fstore-locator","\u002Fshopify\u002Fpayment-gateway-comparison","\u002Fshopify\u002Fpreorder-delay-troubleshooting","\u002Fshopify\u002Fproduct","\u002Fshopify\u002Fproduct\u002Ffit-sensitive-product-page","\u002Fshopify\u002Fproduct\u002Fpreorder-subscription-page","\u002Fshopify\u002Fproduct\u002Fproduct-drop-page","\u002Fshopify\u002Fproduct\u002Fstandard-product-page","\u002Fshopify\u002Freview-options-comparison","\u002Fshopify\u002Fsearch","\u002Fshopify\u002Fshipping-rate-troubleshooting","\u002Fshopify\u002Fshopify-admin-api-graphql","\u002Fshopify\u002Fshopify-admin-map","\u002Fshopify\u002Fshopify-amount-check","\u002Fshopify\u002Fshopify-analytics-reports","\u002Fshopify\u002Fshopify-b2b","\u002Fshopify\u002Fshopify-bundles","\u002Fshopify\u002Fshopify-checkout-customization","\u002Fshopify\u002Fshopify-collections-publishing","\u002Fshopify\u002Fshopify-custom-data","\u002Fshopify\u002Fshopify-customer-accounts","\u002Fshopify\u002Fshopify-customer-privacy","\u002Fshopify\u002Fshopify-customer-segments","\u002Fshopify\u002Fshopify-discounts","\u002Fshopify\u002Fshopify-domains-dns","\u002Fshopify\u002Fshopify-ecosystem","\u002Fshopify\u002Fshopify-ecosystem-analysis","\u002Fshopify\u002Fshopify-entry-map","\u002Fshopify\u002Fshopify-file-sync-diff","\u002Fshopify\u002Fshopify-files-media","\u002Fshopify\u002Fshopify-flow","\u002Fshopify\u002Fshopify-follow-on-shop","\u002Fshopify\u002Fshopify-fraud-disputes","\u002Fshopify\u002Fshopify-fulfillment-delivery","\u002Fshopify\u002Fshopify-functions-extensions","\u002Fshopify\u002Fshopify-gift-cards","\u002Fshopify\u002Fshopify-headless","\u002Fshopify\u002Fshopify-identities-permissions","\u002Fshopify\u002Fshopify-inventory-locations","\u002Fshopify\u002Fshopify-knowledge-base-method","\u002Fshopify\u002Fshopify-knowledge-source-inventory","\u002Fshopify\u002Fshopify-local-delivery-pickup","\u002Fshopify\u002Fshopify-marketing-channels","\u002Fshopify\u002Fshopify-marketing-messaging","\u002Fshopify\u002Fshopify-markets-shipping","\u002Fshopify\u002Fshopify-multi-currency-pricing","\u002Fshopify\u002Fshopify-navigation-menus","\u002Fshopify\u002Fshopify-notifications-emails","\u002Fshopify\u002Fshopify-online-store-preferences","\u002Fshopify\u002Fshopify-order-payment-status","\u002Fshopify\u002Fshopify-orders-management","\u002Fshopify\u002Fshopify-payments-checkout","\u002Fshopify\u002Fshopify-plans","\u002Fshopify\u002Fshopify-pos","\u002Fshopify\u002Fshopify-product-import-export","\u002Fshopify\u002Fshopify-products-variants","\u002Fshopify\u002Fshopify-purchase-journey","\u002Fshopify\u002Fshopify-purchase-validation","\u002Fshopify\u002Fshopify-returns-refunds","\u002Fshopify\u002Fshopify-sales-channels","\u002Fshopify\u002Fshopify-search-and-discovery","\u002Fshopify\u002Fshopify-selling-plans","\u002Fshopify\u002Fshopify-shipping-rates-labels","\u002Fshopify\u002Fshopify-storefront","\u002Fshopify\u002Fshopify-storefront-performance","\u002Fshopify\u002Fshopify-storefront-seo-framework","\u002Fshopify\u002Fshopify-tagging-options","\u002Fshopify\u002Fshopify-taxes-duties","\u002Fshopify\u002Fshopify-theme-management","\u002Fshopify\u002Fshopify-translation-localization","\u002Fshopify\u002Fshopify-url-redirects","\u002Fshopify\u002Fshopify-verification-priorities","\u002Fshopify\u002Fshopify-web-pixels","\u002Fshopify\u002Fshopify-webhooks-events","\u002Fshopify\u002Fsubscription-app-comparison","\u002Fshopify\u002Ftheme\u002Farchitecture","\u002Fshopify\u002Ftheme\u002Fcapability-modules","\u002Fshopify\u002Ftheme\u002Fcontent-architecture","\u002Fshopify\u002Ftheme\u002Fdecision-patterns-and-states","\u002Fshopify\u002Ftheme\u002Fdelivery-framework","\u002Fshopify\u002Ftheme\u002Fglobal-regions","\u002Fshopify\u002Ftheme\u002Flayout","\u002Fshopify\u002Ftheme\u002Flocales","\u002Fshopify\u002Ftheme\u002Fsettings","\u002Fshopify\u002Ftheme\u002Ftemplates","\u002Fshopify\u002Fthemes\u002Fdawn\u002Faccessibility-patterns","\u002Fshopify\u002Fthemes\u002Fdawn\u002Farchitecture","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fbuy-form-and-availability","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcart-drawer-notification","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcolor-schemes","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcontent-sections-and-animations","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcountdown-timer","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcustom-elements-pubsub","\u002Fshopify\u002Fthemes\u002Fdawn\u002Ffacets-and-pagination","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fheader-navigation","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fhtml-update-utility","\u002Fshopify\u002Fthemes\u002Fdawn\u002Floading-performance","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fnewsletter-and-badges","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fpredictive-search","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fproduct-media","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fquantity-input","\u002Fshopify\u002Fthemes\u002Fdawn\u002Frecommendations","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fsection-rendering","\u002Fshopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fvariant-update-protocol","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Farchitecture","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fbadges-reviews-signup","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fbuying","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcart","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcollection-search","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcontent-modules","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Ffacets-and-pagination","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fheader-navigation","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Flayout","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fmarquee-slideshow-animations","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fmedia-zoom-and-hotspots","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fpredictive-search","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fproduct-cards","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fproduct-page","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Freading-source","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Frecommendations","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsticky-add-to-cart-and-availability","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fstyles","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fvariants","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fbehavior-components","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fcart-events","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fdialog-element","\u002Fshopify\u002Fthemes\u002Fimpact","\u002Fshopify\u002Fthemes\u002Fimpact\u002Flazy-media-player","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fsection-spacing-collapsing","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fvariant-picker-rerender","\u002Fshopify\u002Fthemes","\u002Fshopify\u002Fthemes\u002Fpattern-coverage","\u002Fshopify\u002Fwebhook-delivery-troubleshooting","\u002Ftasks\u002Fadd-product-custom-fields","\u002Ftasks\u002Fanalyse-a-repeat-purchase-cohort","\u002Ftasks\u002Fanalyze-customer-feedback","\u002Ftasks\u002Fanswer-order-status-inquiries","\u002Ftasks\u002Faudit-marketing-contact-pressure","\u002Ftasks\u002Fbuild-a-content-calendar","\u002Ftasks\u002Fcalculate-order-contribution","\u002Ftasks\u002Fcalculate-promotion-margin","\u002Ftasks\u002Fclean-up-a-marketing-list","\u002Ftasks\u002Fcollect-and-display-customer-reviews","\u002Ftasks\u002Fconfigure-sales-tax-or-vat","\u002Ftasks\u002Fconfigure-site-search-and-filters","\u002Ftasks\u002Fdefine-repeat-purchase-metrics","\u002Ftasks\u002Fdesign-loyalty-points-rules","\u002Ftasks\u002Fdiagnose-storefront-performance","\u002Ftasks\u002Fenable-and-test-a-payment-method","\u002Ftasks\u002Fevaluate-and-install-an-app","\u002Ftasks\u002Fhandle-a-delayed-order","\u002Ftasks\u002Fhandle-subscription-pause-and-cancellation","\u002Ftasks\u002Fintegrate-and-verify-a-webhook","\u002Ftasks\u002Flaunch-a-referral-program","\u002Ftasks\u002Fplan-a-discount-campaign","\u002Ftasks\u002Fplan-a-peak-season-campaign","\u002Ftasks\u002Fplan-a-product-assortment","\u002Ftasks\u002Fplan-a-win-back-campaign","\u002Ftasks\u002Fplan-an-ad-creative-test","\u002Ftasks\u002Fplan-inventory-replenishment","\u002Ftasks\u002Fplan-post-purchase-education","\u002Ftasks\u002Fprocess-a-refund","\u002Ftasks\u002Fprocess-returned-goods","\u002Ftasks\u002Fpublish-privacy-notice","\u002Ftasks\u002Freconcile-orders-and-analytics","\u002Ftasks\u002Frespond-to-a-chargeback","\u002Ftasks\u002Frespond-to-a-negative-review","\u002Ftasks\u002Freview-a-marketing-campaign","\u002Ftasks\u002Freview-creator-deliverables","\u002Ftasks\u002Freview-marketing-budget-pacing","\u002Ftasks\u002Freview-product-page-module-order","\u002Ftasks\u002Frun-a-cycle-count","\u002Ftasks\u002Frun-a-giveaway","\u002Ftasks\u002Frun-a-post-purchase-survey","\u002Ftasks\u002Frun-an-accessibility-baseline","\u002Ftasks\u002Fsend-back-in-stock-notifications","\u002Ftasks\u002Fseparate-development-environments","\u002Ftasks\u002Fset-shipping-rates","\u002Ftasks\u002Fset-up-a-pre-order","\u002Ftasks\u002Fset-up-a-welcome-flow","\u002Ftasks\u002Fset-up-conversion-tracking","\u002Ftasks\u002Fset-up-cookie-consent","\u002Ftasks\u002Fset-up-presales-support","\u002Ftasks\u002Ftag-campaign-links","\u002Ftasks\u002Ftest-a-purchase","\u002Ftasks\u002Fvalidate-a-customer-need","\u002Ftasks\u002Fvalidate-audience-sync","\u002Ftasks\u002Fwrite-a-creator-brief","\u002Ftasks\u002Fwrite-a-return-policy","\u002Ftasks\u002Fwrite-an-event-tracking-plan","\u002Ftasks\u002Fwrite-product-use-and-care-guide","\u002Fterms\u002Fabove-the-fold","\u002Fterms\u002Faccess-scope","\u002Fterms\u002Faccessible-rich-internet-applications","\u002Fterms\u002Famericans-with-disabilities-act","\u002Fterms\u002Fapi-versioning","\u002Fterms\u002Fattribution-model","\u002Fterms\u002Fattribution-window","\u002Fterms\u002Faverage-order-value","\u002Fterms\u002Faverage-resolution-time","\u002Fterms\u002Fbackorder","\u002Fterms\u002Fblack-friday-cyber-monday","\u002Fterms\u002Fbreak-even-point","\u002Fterms\u002Fbusiness-to-business","\u002Fterms\u002Fbusiness-to-consumer","\u002Fterms\u002Fbuy-now-pay-later","\u002Fterms\u002Fcall-to-action","\u002Fterms\u002Fcart-abandonment-rate","\u002Fterms\u002Fcash-flow","\u002Fterms\u002Fcash-on-delivery","\u002Fterms\u002Fchargeback","\u002Fterms\u002Fclick-through-rate","\u002Fterms\u002Fcohort","\u002Fterms\u002Fcontent-delivery-network","\u002Fterms\u002Fcontent-security-policy","\u002Fterms\u002Fcontribution-margin","\u002Fterms\u002Fconversion-rate","\u002Fterms\u002Fconversion-rate-optimization","\u002Fterms\u002Fcost-of-goods-sold","\u002Fterms\u002Fcost-per-action","\u002Fterms\u002Fcost-per-click","\u002Fterms\u002Fcost-per-mille","\u002Fterms\u002Fcross-selling","\u002Fterms\u002Fcumulative-layout-shift","\u002Fterms\u002Fcustomer-acquisition-cost","\u002Fterms\u002Fcustomer-churn-rate","\u002Fterms\u002Fcustomer-effort-score","\u002Fterms\u002Fcustomer-lifetime-value","\u002Fterms\u002Fcustomer-relationship-management","\u002Fterms\u002Fcustomer-retention-rate","\u002Fterms\u002Fcustomer-satisfaction-score","\u002Fterms\u002Fdays-of-supply","\u002Fterms\u002Fdelivered-at-place","\u002Fterms\u002Fdelivered-duty-paid","\u002Fterms\u002Fdirect-to-consumer","\u002Fterms\u002Fdomain-name-system-record","\u002Fterms\u002Femail-delivery-rate","\u002Fterms\u002Feuropean-accessibility-act","\u002Fterms\u002Fevent","\u002Fterms\u002Ffeature-flag","\u002Fterms\u002Ffirst-contact-resolution","\u002Fterms\u002Ffirst-response-time","\u002Fterms\u002Fgeneral-data-protection-regulation","\u002Fterms\u002Fglobal-trade-item-number","\u002Fterms\u002Fgross-margin","\u002Fterms\u002Fgross-merchandise-value","\u002Fterms\u002Fgross-profit","\u002Fterms\u002Fharmonized-system-code","\u002Fterms\u002Fhash-based-message-authentication-code","\u002Fterms\u002Fideal-customer-profile","\u002Fterms\u002Fidempotency-key","\u002Fterms\u002Fimport-one-stop-shop","\u002Fterms\u002Finteraction-to-next-paint","\u002Fterms\u002Finventory-record-accuracy","\u002Fterms\u002Flanded-cost","\u002Fterms\u002Flargest-contentful-paint","\u002Fterms\u002Flead-time","\u002Fterms\u002Fminimum-order-quantity","\u002Fterms\u002Fmonth-to-date","\u002Fterms\u002Fmonthly-recurring-revenue","\u002Fterms\u002Fnet-promoter-score","\u002Fterms\u002Fnet-sales","\u002Fterms\u002Foauth-2-authorization-framework","\u002Fterms\u002Fpayment-authorization","\u002Fterms\u002Fpayment-capture","\u002Fterms\u002Fpayment-settlement","\u002Fterms\u002Fpoint-of-sale","\u002Fterms\u002Fpre-order","\u002Fterms\u002Fproduct-bundle","\u002Fterms\u002Fproduct-detail-page","\u002Fterms\u002Fproduct-market-fit","\u002Fterms\u002Fproduct-variant","\u002Fterms\u002Frate-limiting","\u002Fterms\u002Freactivation-rate","\u002Fterms\u002Frecency-frequency-monetary","\u002Fterms\u002Frefund","\u002Fterms\u002Freorder-point","\u002Fterms\u002Frepeat-purchase-rate","\u002Fterms\u002Fresponsive-web-design","\u002Fterms\u002Freturn-on-ad-spend","\u002Fterms\u002Freturn-rate","\u002Fterms\u002Frevenue-per-session","\u002Fterms\u002Fsafety-stock","\u002Fterms\u002Fsearch-engine-marketing","\u002Fterms\u002Fsearch-engine-optimization","\u002Fterms\u002Fsell-through-rate","\u002Fterms\u002Fservice-level-agreement","\u002Fterms\u002Fsession","\u002Fterms\u002Fstaging-environment","\u002Fterms\u002Fstock-keeping-unit","\u002Fterms\u002Fstrong-customer-authentication","\u002Fterms\u002Fsubscription-churn-rate","\u002Fterms\u002Ftelevision-commercial","\u002Fterms\u002Fthird-party-logistics","\u002Fterms\u002Fthree-domain-secure","\u002Fterms\u002Fticket-backlog","\u002Fterms\u002Ftls-certificate","\u002Fterms\u002Funique-selling-proposition","\u002Fterms\u002Funsubscribe-rate","\u002Fterms\u002Fup-selling","\u002Fterms\u002Furchin-tracking-module","\u002Fterms\u002Fuser","\u002Fterms\u002Fuser-generated-content","\u002Fterms\u002Fvalue-added-tax","\u002Fterms\u002Fweb-content-accessibility-guidelines","\u002Fterms\u002Fwebhook","\u002Fwordpress\u002Ftemplates-and-content","\u002Fwordpress\u002Ftheme-json-and-patterns","\u002Fshopify\u002Ftopics\u002Fcustomers","\u002Fshopify\u002Ftopics\u002Fdata-automation","\u002Fshopify\u002Ftopics\u002Fecosystem","\u002Fshopify\u002Ftopics\u002Fofficial-themes","\u002Fshopify\u002Ftopics\u002Fpage-composition-patterns","\u002Fshopify\u002Ftopics\u002Fproducts-content","\u002Fshopify\u002Ftopics\u002Fstore-management","\u002Fshopify\u002Ftopics\u002Fstorefront","\u002Fshopify\u002Ftopics\u002Fstorefront-content-types","\u002Fshopify\u002Ftopics\u002Fstorefront-modules","\u002Fshopify\u002Ftopics\u002Fstorefront-pages","\u002Fshopify\u002Ftopics\u002Ftransactions","\u002Fcommerce\u002Fpaths\u002Fcampaign-planning","\u002Fcommerce\u002Fpaths\u002Fcampaign-tracking","\u002Fcommerce\u002Fpaths\u002Fcommerce-concepts","\u002Fcommerce\u002Fpaths\u002Fcommerce-terms-foundation","\u002Fcommerce\u002Fpaths\u002Fcompliance-baseline","\u002Fcommerce\u002Fpaths\u002Fconsent-and-tracking","\u002Fcommerce\u002Fpaths\u002Fcustomer-demand-validation","\u002Fcommerce\u002Fpaths\u002Fecommerce-tracking-implementation","\u002Fcommerce\u002Fpaths\u002Fmarketing-measurement","\u002Fcommerce\u002Fpaths\u002Forder-unit-economics","\u002Fcommerce\u002Fpaths\u002Fplatform-development-foundations","\u002Fcommerce\u002Fpaths\u002Fplatform-integration-foundations","\u002Fcommerce\u002Fpaths\u002Fpost-purchase-operations","\u002Fcommerce\u002Fpaths\u002Fproduct-to-purchase","\u002Fcommerce\u002Fpaths\u002Frepeat-purchase-cohorts","\u002Fcommerce\u002Fpaths\u002Fretention-operations","\u002Fcommerce\u002Fpaths\u002Fshipping-and-service","\u002Fcommerce\u002Fpaths\u002Ftrustworthy-commerce-data","\u002Fshopify\u002Fpaths\u002Fbuild-your-store","\u002Fshopify\u002Fpaths\u002Fcontent-foundations","\u002Fshopify\u002Fpaths\u002Fdawn","\u002Fshopify\u002Fpaths\u002Fofficial-themes","\u002Fshopify\u002Fpaths\u002Fpage-recipes","\u002Fshopify\u002Fpaths\u002Fplatform-basics","\u002Fshopify\u002Fpaths\u002Fpresentation-accessibility","\u002Fshopify\u002Fpaths\u002Fstorefront-platform-mechanisms","\u002Fshopify\u002Fpaths\u002Ftheme-foundations","\u002Fshopify\u002Fpaths\u002Ftheme-pattern-audit","\u002Fshopify\u002Fpaths\u002Fvalidate-purchase-tracking","\u002Fjourney\u002Fdiscover","\u002Fjourney\u002Fevaluate","\u002Fjourney\u002Frepurchase","\u002Fjourney\u002Fuse","\u002Fjourney\u002Fengage","\u002Fjourney\u002Fdeliver","\u002Ffunnel\u002Fawareness","\u002Ffunnel\u002Finterest","\u002Ffunnel\u002Fconsideration","\u002Ffunnel\u002Fpurchase","\u002Ffunnel\u002Fengage",[644,648,652],{"id":645,"path":646,"title":647},"en_sitePages\u002Fabout.md","\u002Fabout","About WooDawn",{"id":649,"path":650,"title":651},"en_sitePages\u002Flegal\u002Fprivacy.md","\u002Flegal\u002Fprivacy","Privacy Notice",{"id":653,"path":654,"title":655},"en_sitePages\u002Flegal\u002Fterms.md","\u002Flegal\u002Fterms","Content Use Terms",{"document":657,"isArticle":1981},{"id":658,"title":659,"abbreviations":660,"aliases":661,"answers":662,"appliesTo":663,"articleType":664,"body":665,"businessModel":1971,"constrainedBy":1972,"currency":1973,"description":1974,"discussionUrl":663,"domains":1975,"evidenceStatus":1977,"extension":1978,"funnel":1979,"implements":1980,"indexable":1981,"measuredBy":1982,"meta":1983,"metric":663,"navigation":1981,"needs":1984,"originalSources":1985,"path":13,"regions":1986,"related":1987,"reviewAfter":663,"roles":1988,"seo":1990,"seoImage":663,"seoTitle":663,"sources":1991,"stages":1992,"status":1993,"stem":1994,"supersededBy":663,"tags":1995,"term":663,"themeSources":2002,"tools":2006,"updatedAt":2008,"uses":2009,"verification":2010,"verifiedAt":2011,"__hash__":2012},"en_articles\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base.md","Horizon's Web Components Base Class: Refs, on: Event Delegation, and the Upgrade Race",[],[],[],null,"guide",{"type":666,"value":667,"toc":1958},"minimark",[668,683,696,701,704,717,722,730,739,780,795,798,868,876,901,907,1007,1021,1024,1061,1191,1231,1235,1245,1248,1398,1409,1422,1425,1541,1545,1554,1671,1698,1705,1716,1761,1771,1828,1882,1886,1929,1933,1942,1945,1954],[669,670,671,672,682],"p",{},"This article is based on Horizon 4.2.0, with source pinned to ",[673,674,678],"a",{"href":675,"rel":676},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Ftree\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9",[677],"nofollow",[679,680,681],"code",{},"5acd1b6"," (verified 2026-10-07). Conclusions are limited to that commit; this is a static source analysis and nothing was tested in a store.",[669,684,685,686,689,690,695],{},"Horizon's front end uses no Alpine, no Stimulus and no framework, and the repository has no build configuration. Interactive components all extend a single base class, ",[679,687,688],{},"Component",", defined in ",[673,691,694],{"href":692,"rel":693},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fcomponent.js",[677],"assets\u002Fcomponent.js","; the whole file is 392 lines.",[697,698,700],"h2",{"id":699},"what-problem-it-solves","What problem it solves",[669,702,703],{},"Liquid renders HTML on the server; JavaScript only \"claims\" existing DOM and attaches behavior. In that setting virtual DOM and reactive rendering go unused. Only three things are actually needed:",[705,706,707,711,714],"ol",{},[708,709,710],"li",{},"Convenient references to child elements;",[708,712,713],{},"Binding DOM events to component methods;",[708,715,716],{},"Both of the above still holding after the server re-renders and replaces the DOM.",[669,718,719,721],{},[679,720,688],{}," is a minimal implementation of exactly those three things.",[697,723,725,726,729],{"id":724},"_1-ref-declarative-child-references","1. ",[679,727,728],{},"ref",": declarative child references",[669,731,732,733,738],{},"Simplified from ",[673,734,737],{"href":735,"rel":736},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fsnippets\u002Fquantity-selector.liquid",[677],"snippets\u002Fquantity-selector.liquid",":",[740,741,746],"pre",{"className":742,"code":743,"language":744,"meta":745,"style":745},"language-liquid shiki shiki-themes github-light","\u003Cquantity-selector-component>\n  \u003Cbutton ref=\"minusButton\" on:click=\"\u002FdecreaseQuantity\">-\u003C\u002Fbutton>\n  \u003Cinput ref=\"quantityInput\">\n  \u003Cbutton ref=\"plusButton\" on:click=\"\u002FincreaseQuantity\">+\u003C\u002Fbutton>\n\u003C\u002Fquantity-selector-component>\n","liquid","",[679,747,748,756,762,768,774],{"__ignoreMap":745},[749,750,753],"span",{"class":751,"line":752},"line",1,[749,754,755],{},"\u003Cquantity-selector-component>\n",[749,757,759],{"class":751,"line":758},2,[749,760,761],{},"  \u003Cbutton ref=\"minusButton\" on:click=\"\u002FdecreaseQuantity\">-\u003C\u002Fbutton>\n",[749,763,765],{"class":751,"line":764},3,[749,766,767],{},"  \u003Cinput ref=\"quantityInput\">\n",[749,769,771],{"class":751,"line":770},4,[749,772,773],{},"  \u003Cbutton ref=\"plusButton\" on:click=\"\u002FincreaseQuantity\">+\u003C\u002Fbutton>\n",[749,775,777],{"class":751,"line":776},5,[749,778,779],{},"\u003C\u002Fquantity-selector-component>\n",[669,781,782,783,786,787,790,791,794],{},"In JS, just use ",[679,784,785],{},"this.refs.quantityInput",". When the attribute value ends with ",[679,788,789],{},"[]"," (e.g. ",[679,792,793],{},"ref=\"quantitySelectors[]\"","), matches are collected into an array.",[669,796,797],{},"A few implementation details are worth noting:",[799,800,801,820,830,855],"ul",{},[708,802,803,807,808,811,812,815,816,819],{},[804,805,806],"strong",{},"Ownership check",": when collecting ",[679,809,810],{},"[ref]"," elements, only those whose nearest Component ancestor is this component are kept, so refs from a nested component don't leak into the outer one. ",[679,813,814],{},"getClosestComponent"," uses ",[679,817,818],{},"getAncestor",", which jumps from a Shadow Root to its host and keeps climbing.",[708,821,822,825,826,829],{},[804,823,824],{},"Unupgraded components recognized by convention",": an element whose tag name ends with ",[679,827,828],{},"-component"," counts as a component boundary even before its JS has run. Module load order therefore can't change which component a ref belongs to.",[708,831,832,838,839,842,843,846,847,850,851,854],{},[804,833,834,835],{},"Fail fast with ",[679,836,837],{},"requiredRefs",": a subclass declares ",[679,840,841],{},"requiredRefs = ['quantityInput', 'minusButton', 'plusButton']"," (as ",[679,844,845],{},"component-quantity-selector.js"," does). A missing ref throws ",[679,848,849],{},"MissingRefError",", with the component's tag name in the message, instead of surfacing later as ",[679,852,853],{},"undefined",".",[708,856,857,860,861,864,865,867],{},[804,858,859],{},"Deferred observer",": the MutationObserver only starts observing inside ",[679,862,863],{},"requestIdleCallback",", so first paint doesn't pay for it. It only watches the ",[679,866,728],{}," attribute and child additions and removals.",[697,869,871,872,875],{"id":870},"_2-onevent-global-event-delegation","2. ",[679,873,874],{},"on:event",": global event delegation",[740,877,879],{"className":742,"code":878,"language":744,"meta":745,"style":745},"\u003Cbutton on:click=\"\u002FdecreaseQuantity\">\n\u003Cbutton on:click=\"#cart-drawer\u002Fclose\">\n\u003Cimg on:click=\"#zoom-dialog-{{ block_id }}\u002Fopen\u002F{{ forloop.index0 }}\">\n\u003Cbutton on:click=\"\u002FremoveFilter?form=\">\n",[679,880,881,886,891,896],{"__ignoreMap":745},[749,882,883],{"class":751,"line":752},[749,884,885],{},"\u003Cbutton on:click=\"\u002FdecreaseQuantity\">\n",[749,887,888],{"class":751,"line":758},[749,889,890],{},"\u003Cbutton on:click=\"#cart-drawer\u002Fclose\">\n",[749,892,893],{"class":751,"line":764},[749,894,895],{},"\u003Cimg on:click=\"#zoom-dialog-{{ block_id }}\u002Fopen\u002F{{ forloop.index0 }}\">\n",[749,897,898],{"class":751,"line":770},[749,899,900],{},"\u003Cbutton on:click=\"\u002FremoveFilter?form=\">\n",[669,902,903,904,738],{},"The attribute syntax is ",[679,905,906],{},"[selector]\u002FmethodName[\u002Fdata or ?query]",[908,909,910,926],"table",{},[911,912,913],"thead",{},[914,915,916,920,923],"tr",{},[917,918,919],"th",{},"Form",[917,921,922],{},"Target component",[917,924,925],{},"Method arguments",[927,928,929,945,961,977,993],"tbody",{},[914,930,931,937,940],{},[932,933,934],"td",{},[679,935,936],{},"\u002Fclose",[932,938,939],{},"Nearest Component ancestor",[932,941,942],{},[679,943,944],{},"(event)",[914,946,947,952,957],{},[932,948,949],{},[679,950,951],{},"#cart-drawer\u002Fclose",[932,953,954],{},[679,955,956],{},"document.querySelector('#cart-drawer')",[932,958,959],{},[679,960,944],{},[914,962,963,968,973],{},[932,964,965],{},[679,966,967],{},".card\u002Fselect",[932,969,970],{},[679,971,972],{},"element.closest('.card')",[932,974,975],{},[679,976,944],{},[914,978,979,984,987],{},[932,980,981],{},[679,982,983],{},"\u002Fopen\u002F3",[932,985,986],{},"Nearest ancestor",[932,988,989,992],{},[679,990,991],{},"(3, event)",", numbers converted automatically",[914,994,995,1000,1002],{},[932,996,997],{},[679,998,999],{},"\u002Fremove?form=a&x=true",[932,1001,986],{},[932,1003,1004],{},[679,1005,1006],{},"({form:'a', x:true}, event)",[669,1008,1009,1012,1013,1016,1017,1020],{},[804,1010,1011],{},"One listener per event type is registered on the whole document",", in the capture phase. When an event arrives, the handler first checks whether the event target itself carries ",[679,1014,1015],{},"on:\u003Ctype>",", otherwise it uses ",[679,1018,1019],{},"closest('[on\\\\:click]')"," to find the declaring element, then parses the value, locates the component and calls the method.",[669,1022,1023],{},"Two details are worth learning from:",[669,1025,1026,1033,1034,1037,1038,1040,1041,1044,1045,1048,1049,1052,1053,1056,1057,1060],{},[804,1027,1028,1029,1032],{},"Rewriting ",[679,1030,1031],{},"event.target"," with a Proxy."," The user may have clicked an ",[679,1035,1036],{},"\u003Csvg>"," inside the button, but the method usually wants ",[679,1039,1031],{}," to be the button that declared ",[679,1042,1043],{},"on:click",". When the two differ, Horizon doesn't create a new event object; it wraps the event in a Proxy that intercepts only ",[679,1046,1047],{},"target"," and passes everything else through. Function properties (",[679,1050,1051],{},"preventDefault"," and friends) are ",[679,1054,1055],{},"bind","-ed back to the original event, otherwise ",[679,1058,1059],{},"this"," would point at the Proxy and throw Illegal invocation:",[740,1062,1066],{"className":1063,"code":1064,"language":1065,"meta":745,"style":745},"language-js shiki shiki-themes github-light","new Proxy(event, {\n  get(target, property) {\n    if (property === 'target') return element;\n    const value = Reflect.get(target, property);\n    return typeof value === 'function' ? value.bind(target) : value;\n  },\n});\n","js",[679,1067,1068,1082,1102,1126,1147,1179,1185],{"__ignoreMap":745},[749,1069,1070,1074,1078],{"class":751,"line":752},[749,1071,1073],{"class":1072},"sD7c4","new",[749,1075,1077],{"class":1076},"s7eDp"," Proxy",[749,1079,1081],{"class":1080},"sgsFI","(event, {\n",[749,1083,1084,1087,1090,1093,1096,1099],{"class":751,"line":758},[749,1085,1086],{"class":1076},"  get",[749,1088,1089],{"class":1080},"(",[749,1091,1047],{"class":1092},"sqxcx",[749,1094,1095],{"class":1080},", ",[749,1097,1098],{"class":1092},"property",[749,1100,1101],{"class":1080},") {\n",[749,1103,1104,1107,1110,1113,1117,1120,1123],{"class":751,"line":764},[749,1105,1106],{"class":1072},"    if",[749,1108,1109],{"class":1080}," (property ",[749,1111,1112],{"class":1072},"===",[749,1114,1116],{"class":1115},"sYBdl"," 'target'",[749,1118,1119],{"class":1080},") ",[749,1121,1122],{"class":1072},"return",[749,1124,1125],{"class":1080}," element;\n",[749,1127,1128,1131,1135,1138,1141,1144],{"class":751,"line":770},[749,1129,1130],{"class":1072},"    const",[749,1132,1134],{"class":1133},"sYu0t"," value",[749,1136,1137],{"class":1072}," =",[749,1139,1140],{"class":1080}," Reflect.",[749,1142,1143],{"class":1076},"get",[749,1145,1146],{"class":1080},"(target, property);\n",[749,1148,1149,1152,1155,1158,1160,1163,1166,1169,1171,1174,1176],{"class":751,"line":776},[749,1150,1151],{"class":1072},"    return",[749,1153,1154],{"class":1072}," typeof",[749,1156,1157],{"class":1080}," value ",[749,1159,1112],{"class":1072},[749,1161,1162],{"class":1115}," 'function'",[749,1164,1165],{"class":1072}," ?",[749,1167,1168],{"class":1080}," value.",[749,1170,1055],{"class":1076},[749,1172,1173],{"class":1080},"(target) ",[749,1175,738],{"class":1072},[749,1177,1178],{"class":1080}," value;\n",[749,1180,1182],{"class":751,"line":1181},6,[749,1183,1184],{"class":1080},"  },\n",[749,1186,1188],{"class":751,"line":1187},7,[749,1189,1190],{"class":1080},"});\n",[669,1192,1193,1196,1197,1200,1201,1204,1205,1208,1209,1212,1213,1216,1217,1200,1220,1223,1224,1227,1228,1230],{},[804,1194,1195],{},"Bubbling versus non-bubbling events."," ",[679,1198,1199],{},"focus"," and ",[679,1202,1203],{},"blur"," don't bubble, but they still reach ",[679,1206,1207],{},"document"," in the capture phase, so they are listed in ",[679,1210,1211],{},"shouldBubble"," and still resolved with ",[679,1214,1215],{},"closest",". ",[679,1218,1219],{},"pointerenter",[679,1221,1222],{},"pointerleave"," are listed as ",[679,1225,1226],{},"expensiveEvents",": only the event target itself is matched, with no ",[679,1229,1215],{}," lookup, to avoid walking the DOM on every pointer movement.",[697,1232,1234],{"id":1233},"_3-the-custom-element-upgrade-race","3. The custom element upgrade race",[669,1236,1237,1240,1241,1244],{},[679,1238,1239],{},"\u003Ccart-drawer-component>"," is already on the page, but the module that defines it hasn't finished executing, and the user clicks a button. ",[679,1242,1243],{},"instance instanceof Component"," is false and the event is silently dropped. Users on slow connections see \"I clicked and nothing happened.\"",[669,1246,1247],{},"Horizon's handling:",[740,1249,1251],{"className":1063,"code":1250,"language":1065,"meta":745,"style":745},"if (\n  !(instance instanceof Component) &&\n  instance instanceof HTMLElement &&\n  instance.tagName.toLowerCase().endsWith('-component')\n) {\n  customElements.upgrade(instance);\n  if (!(instance instanceof Component)) {\n    console.warn(`[component] Dropped \"${event.type}\" on \u003C...> — element not yet upgraded`);\n    return;\n  }\n}\n",[679,1252,1253,1261,1280,1293,1315,1319,1330,1350,1378,1386,1392],{"__ignoreMap":745},[749,1254,1255,1258],{"class":751,"line":752},[749,1256,1257],{"class":1072},"if",[749,1259,1260],{"class":1080}," (\n",[749,1262,1263,1266,1269,1272,1275,1277],{"class":751,"line":758},[749,1264,1265],{"class":1072},"  !",[749,1267,1268],{"class":1080},"(instance ",[749,1270,1271],{"class":1072},"instanceof",[749,1273,1274],{"class":1076}," Component",[749,1276,1119],{"class":1080},[749,1278,1279],{"class":1072},"&&\n",[749,1281,1282,1285,1287,1290],{"class":751,"line":764},[749,1283,1284],{"class":1080},"  instance ",[749,1286,1271],{"class":1072},[749,1288,1289],{"class":1076}," HTMLElement",[749,1291,1292],{"class":1072}," &&\n",[749,1294,1295,1298,1301,1304,1307,1309,1312],{"class":751,"line":770},[749,1296,1297],{"class":1080},"  instance.tagName.",[749,1299,1300],{"class":1076},"toLowerCase",[749,1302,1303],{"class":1080},"().",[749,1305,1306],{"class":1076},"endsWith",[749,1308,1089],{"class":1080},[749,1310,1311],{"class":1115},"'-component'",[749,1313,1314],{"class":1080},")\n",[749,1316,1317],{"class":751,"line":776},[749,1318,1101],{"class":1080},[749,1320,1321,1324,1327],{"class":751,"line":1181},[749,1322,1323],{"class":1080},"  customElements.",[749,1325,1326],{"class":1076},"upgrade",[749,1328,1329],{"class":1080},"(instance);\n",[749,1331,1332,1335,1338,1341,1343,1345,1347],{"class":751,"line":1187},[749,1333,1334],{"class":1072},"  if",[749,1336,1337],{"class":1080}," (",[749,1339,1340],{"class":1072},"!",[749,1342,1268],{"class":1080},[749,1344,1271],{"class":1072},[749,1346,1274],{"class":1076},[749,1348,1349],{"class":1080},")) {\n",[749,1351,1353,1356,1359,1361,1364,1367,1369,1372,1375],{"class":751,"line":1352},8,[749,1354,1355],{"class":1080},"    console.",[749,1357,1358],{"class":1076},"warn",[749,1360,1089],{"class":1080},[749,1362,1363],{"class":1115},"`[component] Dropped \"${",[749,1365,1366],{"class":1080},"event",[749,1368,854],{"class":1115},[749,1370,1371],{"class":1080},"type",[749,1373,1374],{"class":1115},"}\" on \u003C...> — element not yet upgraded`",[749,1376,1377],{"class":1080},");\n",[749,1379,1381,1383],{"class":751,"line":1380},9,[749,1382,1151],{"class":1072},[749,1384,1385],{"class":1080},";\n",[749,1387,1389],{"class":751,"line":1388},10,[749,1390,1391],{"class":1080},"  }\n",[749,1393,1395],{"class":751,"line":1394},11,[749,1396,1397],{"class":1080},"}\n",[669,1399,1400,1401,1404,1405,1408],{},"The source comment notes that ",[679,1402,1403],{},"customElements.upgrade"," is synchronous and idempotent: if the class is registered but the element isn't upgraded yet, it upgrades immediately; if the element is already upgraded or the class isn't registered yet, it does nothing. If the upgrade still fails, it logs a warning ",[804,1406,1407],{},"instead of swallowing the event",". The comment also says this silent failure mode caused the bulk of their recent Playwright flakes.",[669,1410,1411,1412,1415,1416,1418,1419,1421],{},"After the fallback block there is one more guard, ",[679,1413,1414],{},"if (!(instance instanceof Component)) return;",": when the target isn't a ",[679,1417,688],{}," (say the selector resolves to a plain element, the tag doesn't end in ",[679,1420,828],{},", or no instance is found), it returns right away, with no warning and no method call.",[669,1423,1424],{},"Any architecture that combines event delegation with asynchronously loaded modules has to account for the window where the DOM has arrived and the behavior hasn't.",[740,1426,1430],{"className":1427,"code":1428,"language":1429,"meta":745,"style":745},"language-mermaid shiki shiki-themes github-light","flowchart TB\n  accTitle: Horizon 4.2.0 Component global event delegation and upgrade fallback\n  accDescr: document has one capture-phase listener per event type; it finds the element declaring the on attribute, parses the value and locates the component; if the component isn't upgraded and its tag ends in -component it is upgraded synchronously, and if that still fails it warns and drops the event; a target that isn't a Component returns silently; a method name that isn't a function is skipped silently.\n  listen[\"One capture-phase listener\u003Cbr\u002F>per event type on document\"] --> self{\"Event target itself\u003Cbr\u002F>has on:type?\"}\n  self -->|Yes| decl[\"Declaring element found\"]\n  self -->|No| expensive{\"pointerenter or pointerleave?\u003Cbr\u002F>(expensiveEvents)\"}\n  expensive -->|Yes| noLookup[\"Match the target only,\u003Cbr\u002F>no closest lookup\"]\n  expensive -->|No| closest[\"closest walks up to\u003Cbr\u002F>the declaring element\"]\n  closest --> decl\n  decl --> parse[\"Parse the attribute value,\u003Cbr\u002F>locate the target component\"]\n  parse --> notUpgraded{\"Not a Component instance\u003Cbr\u002F>and tag ends in -component?\"}\n  notUpgraded -->|Yes| upgrade[\"customElements.upgrade(instance)\"]\n  upgrade --> still{\"Component after upgrade?\"}\n  still -->|No| warn[\"console.warn, then drop the event\"]\n  still -->|Yes| callable\n  notUpgraded -->|No| isComp{\"instance is a Component?\"}\n  isComp -->|No| silent[\"Return silently, no warning\"]\n  isComp -->|Yes| callable{\"typeof callback === 'function'?\"}\n  callable -->|No| skip[\"Skipped silently, no warning\"]\n  callable -->|Yes| invoke[\"Call the method; if the declaring element\u003Cbr\u002F>differs from the target, a Proxy rewrites event.target\"]\n","mermaid",[679,1431,1432,1437,1442,1447,1452,1457,1462,1467,1472,1477,1482,1487,1493,1499,1505,1511,1517,1523,1529,1535],{"__ignoreMap":745},[749,1433,1434],{"class":751,"line":752},[749,1435,1436],{},"flowchart TB\n",[749,1438,1439],{"class":751,"line":758},[749,1440,1441],{},"  accTitle: Horizon 4.2.0 Component global event delegation and upgrade fallback\n",[749,1443,1444],{"class":751,"line":764},[749,1445,1446],{},"  accDescr: document has one capture-phase listener per event type; it finds the element declaring the on attribute, parses the value and locates the component; if the component isn't upgraded and its tag ends in -component it is upgraded synchronously, and if that still fails it warns and drops the event; a target that isn't a Component returns silently; a method name that isn't a function is skipped silently.\n",[749,1448,1449],{"class":751,"line":770},[749,1450,1451],{},"  listen[\"One capture-phase listener\u003Cbr\u002F>per event type on document\"] --> self{\"Event target itself\u003Cbr\u002F>has on:type?\"}\n",[749,1453,1454],{"class":751,"line":776},[749,1455,1456],{},"  self -->|Yes| decl[\"Declaring element found\"]\n",[749,1458,1459],{"class":751,"line":1181},[749,1460,1461],{},"  self -->|No| expensive{\"pointerenter or pointerleave?\u003Cbr\u002F>(expensiveEvents)\"}\n",[749,1463,1464],{"class":751,"line":1187},[749,1465,1466],{},"  expensive -->|Yes| noLookup[\"Match the target only,\u003Cbr\u002F>no closest lookup\"]\n",[749,1468,1469],{"class":751,"line":1352},[749,1470,1471],{},"  expensive -->|No| closest[\"closest walks up to\u003Cbr\u002F>the declaring element\"]\n",[749,1473,1474],{"class":751,"line":1380},[749,1475,1476],{},"  closest --> decl\n",[749,1478,1479],{"class":751,"line":1388},[749,1480,1481],{},"  decl --> parse[\"Parse the attribute value,\u003Cbr\u002F>locate the target component\"]\n",[749,1483,1484],{"class":751,"line":1394},[749,1485,1486],{},"  parse --> notUpgraded{\"Not a Component instance\u003Cbr\u002F>and tag ends in -component?\"}\n",[749,1488,1490],{"class":751,"line":1489},12,[749,1491,1492],{},"  notUpgraded -->|Yes| upgrade[\"customElements.upgrade(instance)\"]\n",[749,1494,1496],{"class":751,"line":1495},13,[749,1497,1498],{},"  upgrade --> still{\"Component after upgrade?\"}\n",[749,1500,1502],{"class":751,"line":1501},14,[749,1503,1504],{},"  still -->|No| warn[\"console.warn, then drop the event\"]\n",[749,1506,1508],{"class":751,"line":1507},15,[749,1509,1510],{},"  still -->|Yes| callable\n",[749,1512,1514],{"class":751,"line":1513},16,[749,1515,1516],{},"  notUpgraded -->|No| isComp{\"instance is a Component?\"}\n",[749,1518,1520],{"class":751,"line":1519},17,[749,1521,1522],{},"  isComp -->|No| silent[\"Return silently, no warning\"]\n",[749,1524,1526],{"class":751,"line":1525},18,[749,1527,1528],{},"  isComp -->|Yes| callable{\"typeof callback === 'function'?\"}\n",[749,1530,1532],{"class":751,"line":1531},19,[749,1533,1534],{},"  callable -->|No| skip[\"Skipped silently, no warning\"]\n",[749,1536,1538],{"class":751,"line":1537},20,[749,1539,1540],{},"  callable -->|Yes| invoke[\"Call the method; if the declaring element\u003Cbr\u002F>differs from the target, a Proxy rewrites event.target\"]\n",[697,1542,1544],{"id":1543},"_4-hydrating-declarative-shadow-dom","4. Hydrating declarative Shadow DOM",[669,1546,1547,1549,1550,1553],{},[679,1548,688],{}," extends ",[679,1551,1552],{},"DeclarativeShadowElement",", defined in the same file:",[740,1555,1557],{"className":1063,"code":1556,"language":1065,"meta":745,"style":745},"connectedCallback() {\n  if (!this.shadowRoot) {\n    const template = this.querySelector(':scope > template[shadowrootmode=\"open\"]');\n    if (!(template instanceof HTMLTemplateElement)) return;\n    this.attachShadow({ mode: 'open' }).append(template.content.cloneNode(true));\n  }\n}\n",[679,1558,1559,1567,1580,1604,1627,1663,1667],{"__ignoreMap":745},[749,1560,1561,1564],{"class":751,"line":752},[749,1562,1563],{"class":1076},"connectedCallback",[749,1565,1566],{"class":1080},"() {\n",[749,1568,1569,1571,1573,1575,1577],{"class":751,"line":758},[749,1570,1334],{"class":1072},[749,1572,1337],{"class":1080},[749,1574,1340],{"class":1072},[749,1576,1059],{"class":1133},[749,1578,1579],{"class":1080},".shadowRoot) {\n",[749,1581,1582,1584,1587,1589,1592,1594,1597,1599,1602],{"class":751,"line":764},[749,1583,1130],{"class":1072},[749,1585,1586],{"class":1133}," template",[749,1588,1137],{"class":1072},[749,1590,1591],{"class":1133}," this",[749,1593,854],{"class":1080},[749,1595,1596],{"class":1076},"querySelector",[749,1598,1089],{"class":1080},[749,1600,1601],{"class":1115},"':scope > template[shadowrootmode=\"open\"]'",[749,1603,1377],{"class":1080},[749,1605,1606,1608,1610,1612,1615,1617,1620,1623,1625],{"class":751,"line":770},[749,1607,1106],{"class":1072},[749,1609,1337],{"class":1080},[749,1611,1340],{"class":1072},[749,1613,1614],{"class":1080},"(template ",[749,1616,1271],{"class":1072},[749,1618,1619],{"class":1076}," HTMLTemplateElement",[749,1621,1622],{"class":1080},")) ",[749,1624,1122],{"class":1072},[749,1626,1385],{"class":1080},[749,1628,1629,1632,1634,1637,1640,1643,1646,1649,1652,1655,1657,1660],{"class":751,"line":776},[749,1630,1631],{"class":1133},"    this",[749,1633,854],{"class":1080},[749,1635,1636],{"class":1076},"attachShadow",[749,1638,1639],{"class":1080},"({ mode: ",[749,1641,1642],{"class":1115},"'open'",[749,1644,1645],{"class":1080}," }).",[749,1647,1648],{"class":1076},"append",[749,1650,1651],{"class":1080},"(template.content.",[749,1653,1654],{"class":1076},"cloneNode",[749,1656,1089],{"class":1080},[749,1658,1659],{"class":1133},"true",[749,1661,1662],{"class":1080},"));\n",[749,1664,1665],{"class":751,"line":1181},[749,1666,1391],{"class":1080},[749,1668,1669],{"class":751,"line":1187},[749,1670,1397],{"class":1080},[669,1672,1673,1676,1677,1095,1680,1683,1684,1687,1688,1549,1695,1697],{},[679,1674,1675],{},"\u003Ctemplate shadowrootmode=\"open\">"," is only turned into a Shadow Root by the browser during the initial HTML parse (the file's header comment says the same). Components inserted via ",[679,1678,1679],{},"innerHTML",[679,1681,1682],{},"DOMParser"," or morph aren't converted automatically and must be attached by hand. Since Horizon relies heavily on Section Rendering API partial refreshes, this step is essential. ",[679,1685,1686],{},"OverflowList"," in ",[673,1689,1692],{"href":1690,"rel":1691},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Foverflow-list.js",[677],[679,1693,1694],{},"overflow-list.js",[679,1696,1552],{}," directly and depends on it.",[697,1699,1701,1702],{"id":1700},"_5-working-with-morph-updatedcallback","5. Working with morph: ",[679,1703,1704],{},"updatedCallback",[669,1706,1707,1708,1711,1712,1715],{},"Horizon uses its own morph for partial updates (see ",[673,1709,1710],{"href":17},"section rendering and morph","). By design, after morph changes a component's subtree it calls the component's ",[679,1713,1714],{},"updatedCallback()"," in a microtask:",[740,1717,1719],{"className":1063,"code":1718,"language":1065,"meta":745,"style":745},"updatedCallback() {\n  this.#mutationObserver.takeRecords(); \u002F\u002F drop queued mutations to avoid a redundant refresh\n  this.#updateRefs();\n}\n",[679,1720,1721,1727,1745,1757],{"__ignoreMap":745},[749,1722,1723,1725],{"class":751,"line":752},[749,1724,1704],{"class":1076},[749,1726,1566],{"class":1080},[749,1728,1729,1732,1735,1738,1741],{"class":751,"line":758},[749,1730,1731],{"class":1133},"  this",[749,1733,1734],{"class":1080},".#mutationObserver.",[749,1736,1737],{"class":1076},"takeRecords",[749,1739,1740],{"class":1080},"(); ",[749,1742,1744],{"class":1743},"sAwPA","\u002F\u002F drop queued mutations to avoid a redundant refresh\n",[749,1746,1747,1749,1751,1754],{"class":751,"line":764},[749,1748,1731],{"class":1133},[749,1750,854],{"class":1080},[749,1752,1753],{"class":1076},"#updateRefs",[749,1755,1756],{"class":1080},"();\n",[749,1758,1759],{"class":751,"line":770},[749,1760,1397],{"class":1080},[669,1762,1763,1764,1767,1768,1770],{},"When morph decides a subtree is unchanged (",[679,1765,1766],{},"isEqualNode","), it skips it entirely and ",[679,1769,1704],{}," doesn't fire. That's intentional: if the subtree didn't change, the refs don't need rebuilding.",[669,1772,1773,1774,1687,1777,1782,1783,1786,1787,1789,1790,1793,1794,1796,1797,1216,1800,1687,1803,1808,1809,1811,1812,1814,1815,1817,1818,1820,1821,1200,1824,1827],{},"From a static reading, though, this callback may never be called on the section-refresh path. ",[679,1775,1776],{},"walk",[673,1778,1781],{"href":1779,"rel":1780},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fmorph.js",[677],"morph.js"," ends with ",[679,1784,1785],{},"options.onAfterUpdate?.(newNode)",", passing a node from the ",[804,1788,1073],{}," tree, and ",[679,1791,1792],{},"MORPH_OPTIONS.onAfterUpdate"," only queues ",[679,1795,1704],{}," when ",[679,1798,1799],{},"node instanceof Component",[679,1801,1802],{},"morphSection",[673,1804,1807],{"href":1805,"rel":1806},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fsection-renderer.js",[677],"section-renderer.js"," parses the response with ",[679,1810,1682],{},"; under the HTML spec, custom elements in such a document without a browsing context aren't upgraded, so nodes in the new tree aren't ",[679,1813,688],{}," instances. In most cases the MutationObserver still keeps refs in sync (child additions and removals trigger ",[679,1816,1753],{},"); what's affected are subclasses that override ",[679,1819,1704],{},", such as ",[679,1822,1823],{},"results-list.js",[679,1825,1826],{},"disclosures-summary-fit.js",". This has not been verified in a browser.",[740,1829,1831],{"className":1427,"code":1830,"language":1429,"meta":745,"style":745},"flowchart TB\n  accTitle: Horizon 4.2.0 whether updatedCallback fires on the section-refresh path\n  accDescr: From a static reading, morphSection parses the response with DOMParser, custom elements in the new tree aren't upgraded, so the node passed to onAfterUpdate isn't a Component instance and updatedCallback isn't called; the MutationObserver mostly keeps refs in sync. Not verified in a browser.\n  parse[\"morphSection parses the\u003Cbr\u002F>response with DOMParser\"] --> equal{\"Subtree isEqualNode?\"}\n  equal -->|Yes| skip[\"Whole subtree skipped,\u003Cbr\u002F>updatedCallback not fired\"]\n  equal -->|No| walk[\"walk in morph.js updates the subtree,\u003Cbr\u002F>then runs options.onAfterUpdate?.(newNode)\"]\n  walk --> isComp{\"New-tree node\u003Cbr\u002F>instanceof Component?\"}\n  isComp -->|\"Yes: by design\"| queue[\"updatedCallback() queued in a microtask\u003Cbr\u002F>takeRecords, then #updateRefs\"]\n  isComp -->|\"No: custom elements aren't\u003Cbr\u002F>upgraded in a DOMParser document\"| missed[\"updatedCallback not called\"]\n  missed --> observer[\"Child additions and removals trigger\u003Cbr\u002F>MutationObserver, #updateRefs keeps refs in sync\"]\n",[679,1832,1833,1837,1842,1847,1852,1857,1862,1867,1872,1877],{"__ignoreMap":745},[749,1834,1835],{"class":751,"line":752},[749,1836,1436],{},[749,1838,1839],{"class":751,"line":758},[749,1840,1841],{},"  accTitle: Horizon 4.2.0 whether updatedCallback fires on the section-refresh path\n",[749,1843,1844],{"class":751,"line":764},[749,1845,1846],{},"  accDescr: From a static reading, morphSection parses the response with DOMParser, custom elements in the new tree aren't upgraded, so the node passed to onAfterUpdate isn't a Component instance and updatedCallback isn't called; the MutationObserver mostly keeps refs in sync. Not verified in a browser.\n",[749,1848,1849],{"class":751,"line":770},[749,1850,1851],{},"  parse[\"morphSection parses the\u003Cbr\u002F>response with DOMParser\"] --> equal{\"Subtree isEqualNode?\"}\n",[749,1853,1854],{"class":751,"line":776},[749,1855,1856],{},"  equal -->|Yes| skip[\"Whole subtree skipped,\u003Cbr\u002F>updatedCallback not fired\"]\n",[749,1858,1859],{"class":751,"line":1181},[749,1860,1861],{},"  equal -->|No| walk[\"walk in morph.js updates the subtree,\u003Cbr\u002F>then runs options.onAfterUpdate?.(newNode)\"]\n",[749,1863,1864],{"class":751,"line":1187},[749,1865,1866],{},"  walk --> isComp{\"New-tree node\u003Cbr\u002F>instanceof Component?\"}\n",[749,1868,1869],{"class":751,"line":1352},[749,1870,1871],{},"  isComp -->|\"Yes: by design\"| queue[\"updatedCallback() queued in a microtask\u003Cbr\u002F>takeRecords, then #updateRefs\"]\n",[749,1873,1874],{"class":751,"line":1380},[749,1875,1876],{},"  isComp -->|\"No: custom elements aren't\u003Cbr\u002F>upgraded in a DOMParser document\"| missed[\"updatedCallback not called\"]\n",[749,1878,1879],{"class":751,"line":1388},[749,1880,1881],{},"  missed --> observer[\"Child additions and removals trigger\u003Cbr\u002F>MutationObserver, #updateRefs keeps refs in sync\"]\n",[697,1883,1885],{"id":1884},"things-worth-questioning","Things worth questioning",[799,1887,1888,1902,1911],{},[708,1889,1890,1893,1894,1897,1898,1901],{},[804,1891,1892],{},"The string DSL has no type checking."," Misspell the method in ",[679,1895,1896],{},"on:click=\"\u002FdecreaseQuantity\""," and it just silently doesn't run (when ",[679,1899,1900],{},"typeof callback === 'function'"," is false it's skipped), without even a warning. After all the effort spent surfacing the upgrade race, the lack of a warning here is inconsistent.",[708,1903,1904,1907,1908,1910],{},[804,1905,1906],{},"The cost of convention over configuration."," \"A tag ending in ",[679,1909,828],{}," is a component boundary\" is an implicit convention you won't know without reading the source.",[708,1912,1913,1916,1917,1200,1919,1921,1922,1095,1925,1928],{},[804,1914,1915],{},"The globally delegated events are a hard-coded list of 13"," (11 regular events plus ",[679,1918,1219],{},[679,1920,1222],{},"). To use ",[679,1923,1924],{},"dblclick",[679,1926,1927],{},"scroll"," and the like, you have to change the base class.",[697,1930,1932],{"id":1931},"summary","Summary",[669,1934,1935,1937,1938,1941],{},[679,1936,688],{},"'s trade-off is clear: ",[804,1939,1940],{},"HTML is the single source of state; JS only claims and binds."," It gives up reactivity in exchange for zero dependencies, no build step, and natural compatibility with whole-section server re-rendering.",[669,1943,1944],{},"For a Liquid theme that's simpler than adopting Alpine and then dealing with \"server HTML replacement wipes Alpine state.\" The cost: once you need client-side state to drive the UI, you're back to hand-written DOM manipulation.",[669,1946,1947,1948,1953],{},"Horizon's ",[673,1949,1952],{"href":1950,"rel":1951},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002FLICENSE.md",[677],"LICENSE.md"," forbids distributing themes derived from its code through the Theme Store or any other channel, allowing only direct delivery to a merchant for that merchant's own use in a services engagement. This article only analyzes the source; implement any borrowed ideas yourself.",[1955,1956,1957],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}",{"title":745,"searchDepth":758,"depth":758,"links":1959},[1960,1961,1963,1965,1966,1967,1969,1970],{"id":699,"depth":758,"text":700},{"id":724,"depth":758,"text":1962},"1. ref: declarative child references",{"id":870,"depth":758,"text":1964},"2. on:event: global event delegation",{"id":1233,"depth":758,"text":1234},{"id":1543,"depth":758,"text":1544},{"id":1700,"depth":758,"text":1968},"5. Working with morph: updatedCallback",{"id":1884,"depth":758,"text":1885},{"id":1931,"depth":758,"text":1932},"dtc",[],"historical","A Horizon 4.2.0 source walkthrough of the framework-free Component base class: automatic ref collection and ownership, global event delegation through on: attributes, the custom element upgrade race, declarative Shadow DOM hydration, and how updatedCallback is meant to work with morph, plus a doubt about whether it fires.",[1976],"storefront-experience","partial","md",[],[],true,[],{},[],[],[],[17,14,15],[1989],"developer",{"title":659,"description":1974},[692,1779,1805,1690,735,1950],[],"published","shopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base",[1996,1997,1998,1999,2000,2001],"Horizon","Shopify","Source analysis","4.2.0","Web Components","Event delegation",[2003],{"theme":2004,"version":2005,"url":675},"horizon","4.2.0 · 5acd1b6b66c02f61d3216e3adace5dd9e0404fc9",[2007],"shopify","2026-10-19",[],"Static reading of assets\u002Fcomponent.js, assets\u002Fmorph.js, assets\u002Fsection-renderer.js, assets\u002Foverflow-list.js and the referenced Liquid snippets at Horizon 4.2.0 commit 5acd1b6. No store, theme editor or browser testing; the conclusion about whether updatedCallback fires comes from static reading only.","2026-10-07","sACjWvp5WuuRBgUg1jr3kZjQKJs8094Dck07-9Z-SI0",{"topic":2014,"paths":2016},{"title":2015,"path":29},"Storefront and experience",[],[2018,2020,2022],{"title":2019,"path":17},"Horizon's Section Refresh and Morph: SectionRenderer Concurrency and DOM Merging",{"title":2021,"path":14},"Horizon's Keyed Lazy Hydration: Updating Only Nodes Marked with data-hydration-key",{"title":2023,"path":15},"Taming Layout Thrashing in Horizon: On-Demand Measurement, Batched Reads and Writes, Frame-Level Scheduling",{"titles":2025,"toolNames":2026,"domainPaths":2039,"reverse":2040},{},{"elevar":2027,"google-ads":2028,"google-analytics":2029,"google-merchant-center":2030,"google-tag-manager":2031,"gorgias":2032,"judge-me":2033,"klaviyo":2034,"meta-ads":2035,"paypal":2036,"shopify":1997,"woocommerce":2037,"wordpress":2038},"Elevar","Google Ads","Google Analytics","Google Merchant Center","Google Tag Manager","Gorgias","Judge.me","Klaviyo","Meta Ads","PayPal","WooCommerce","WordPress",[20,21,22,23,24,25,26,27,28,29],{"implements":2041,"measuredBy":2042,"needs":2043,"constrainedBy":2044},[],[],[],[],1792741304475]