[{"data":1,"prerenderedAt":1974},["ShallowReactive",2],{"knowledge-routes":3,"en:footer-pages":643,"en:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph":656,"en:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph:navigation":1940,"en:related:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fkeyed-hydration,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fadd-to-cart-race,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fview-transitions":1944,"en:graph:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph":1953},{"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":1908},{"id":658,"title":659,"abbreviations":660,"aliases":661,"answers":662,"appliesTo":663,"articleType":664,"body":665,"businessModel":1898,"constrainedBy":1899,"currency":1900,"description":1901,"discussionUrl":663,"domains":1902,"evidenceStatus":1904,"extension":1905,"funnel":1906,"implements":1907,"indexable":1908,"measuredBy":1909,"meta":1910,"metric":663,"navigation":1908,"needs":1911,"originalSources":1912,"path":17,"regions":1913,"related":1914,"reviewAfter":663,"roles":1915,"seo":1917,"seoImage":663,"seoTitle":663,"sources":1918,"stages":1919,"status":1920,"stem":1921,"supersededBy":663,"tags":1922,"term":663,"themeSources":1929,"tools":1933,"updatedAt":1935,"uses":1936,"verification":1937,"verifiedAt":1938,"__hash__":1939},"en_articles\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph.md","Horizon's Section Refresh and Morph: SectionRenderer Concurrency and DOM Merging",[],[],[],null,"guide",{"type":666,"value":667,"toc":1880},"minimark",[668,683,691,711,714,719,734,738,763,768,782,789,879,890,998,1002,1041,1055,1059,1095,1109,1123,1127,1147,1170,1174,1188,1192,1229,1261,1264,1268,1271,1282,1393,1419,1488,1491,1517,1521,1524,1530,1571,1577,1621,1624,1654,1658,1707,1720,1724,1760,1764,1838,1842,1848,1859,1874,1877],[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,690],{},"Filtering products, switching variants, changing cart quantities: Horizon does them all the same way. ",[687,688,689],"strong",{},"It requests fresh section HTML from the Section Rendering API, then uses morph to apply the differences to the existing DOM."," There are no client-side templates and no JSON-to-DOM mapping code. Two files are involved:",[692,693,694,703],"ul",{},[695,696,697,702],"li",{},[673,698,701],{"href":699,"rel":700},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fsection-renderer.js",[677],"assets\u002Fsection-renderer.js",": requests, concurrency and caching",[695,704,705,710],{},[673,706,709],{"href":707,"rel":708},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fmorph.js",[677],"assets\u002Fmorph.js",": merging DOM differences",[669,712,713],{},"This article looks only at those two files, not at the individual features that call them.",[715,716,718],"h2",{"id":717},"why-not-just-innerhtml","Why not just innerHTML",[669,720,721,722,725,726,729,730,733],{},"Replacing with ",[679,723,724],{},"innerHTML"," loses focus, the value a user is typing, the open state of ",[679,727,728],{},"\u003Cdetails>",", initialized custom element instances and their listeners, and it re-requests images. Morph's goal is to ",[687,731,732],{},"change only what changed and leave every other node as it was",".",[715,735,737],{"id":736},"sectionrenderer-one-render-per-section-at-a-time","SectionRenderer: one render per section at a time",[739,740,745],"pre",{"className":741,"code":742,"language":743,"meta":744,"style":744},"language-js shiki shiki-themes github-light","sectionRenderer.renderSection(sectionId, { cache, mode, url, shouldRender, injectStylesheet })\n","js","",[679,746,747],{"__ignoreMap":744},[748,749,752,756,760],"span",{"class":750,"line":751},"line",1,[748,753,755],{"class":754},"sgsFI","sectionRenderer.",[748,757,759],{"class":758},"s7eDp","renderSection",[748,761,762],{"class":754},"(sectionId, { cache, mode, url, shouldRender, injectStylesheet })\n",[764,765,767],"h3",{"id":766},"_1-a-new-request-cancels-the-old-one","1. A new request cancels the old one",[669,769,770,771,774,775,777,778,781],{},"Each sectionId has an ",[679,772,773],{},"AbortController",". When a new ",[679,776,759],{}," arrives, it first aborts the previous request for the same section, and ",[679,779,780],{},"signal.aborted"," is checked once more before morphing. If a user clicks filters in quick succession, only the last result is applied; a late old response can't overwrite a newer result.",[669,783,784,785,788],{},"Cancelled callers usually don't get an empty result either. In the catch branch of ",[679,786,787],{},"#renderSection",", if the same section already has a newer pending render, that promise is returned directly:",[739,790,792],{"className":741,"code":791,"language":743,"meta":744,"style":744},"if (abortController.signal.aborted) {\n  const pendingRender = this.#pendingRendersBySectionId.get(sectionId);\n  if (pendingRender && pendingRender.abortController !== abortController) {\n    return pendingRender.promise;\n  }\n  return sectionHTML;\n}\n",[679,793,794,803,828,849,858,864,873],{"__ignoreMap":744},[748,795,796,800],{"class":750,"line":751},[748,797,799],{"class":798},"sD7c4","if",[748,801,802],{"class":754}," (abortController.signal.aborted) {\n",[748,804,806,809,813,816,819,822,825],{"class":750,"line":805},2,[748,807,808],{"class":798},"  const",[748,810,812],{"class":811},"sYu0t"," pendingRender",[748,814,815],{"class":798}," =",[748,817,818],{"class":811}," this",[748,820,821],{"class":754},".#pendingRendersBySectionId.",[748,823,824],{"class":758},"get",[748,826,827],{"class":754},"(sectionId);\n",[748,829,831,834,837,840,843,846],{"class":750,"line":830},3,[748,832,833],{"class":798},"  if",[748,835,836],{"class":754}," (pendingRender ",[748,838,839],{"class":798},"&&",[748,841,842],{"class":754}," pendingRender.abortController ",[748,844,845],{"class":798},"!==",[748,847,848],{"class":754}," abortController) {\n",[748,850,852,855],{"class":750,"line":851},4,[748,853,854],{"class":798},"    return",[748,856,857],{"class":754}," pendingRender.promise;\n",[748,859,861],{"class":750,"line":860},5,[748,862,863],{"class":754},"  }\n",[748,865,867,870],{"class":750,"line":866},6,[748,868,869],{"class":798},"  return",[748,871,872],{"class":754}," sectionHTML;\n",[748,874,876],{"class":750,"line":875},7,[748,877,878],{"class":754},"}\n",[669,880,881,882,885,886,889],{},"So a caller of ",[679,883,884],{},"await renderSection()"," that was superseded by a newer request receives the HTML of the latest render and doesn't need to care that it was cancelled. Only a plain cancellation through ",[679,887,888],{},"abortRender",", with no follow-up render, returns an empty string.",[739,891,895],{"className":892,"code":893,"language":894,"meta":744,"style":744},"language-mermaid shiki shiki-themes github-light","sequenceDiagram\n  accTitle: Horizon 4.2.0 a new request cancels the old one for the same section\n  accDescr: A new renderSection for the same sectionId first aborts the previous request; the cancelled call finds a newer pending render in its catch branch and returns that promise, so both callers receive the HTML of the latest render.\n  participant A as Caller A\n  participant B as Caller B\n  participant SR as SectionRenderer\n  participant S as Section Rendering API\n  A->>SR: renderSection(sectionId)\n  SR->>S: Request A (the sectionId's AbortController)\n  B->>SR: renderSection(sectionId)\n  SR->>SR: Abort the previous request for the same section\n  SR->>S: Request B\n  SR->>SR: Request A reaches catch: signal.aborted, and a newer pending render exists\n  SR-->>A: Return pendingRender.promise\n  S-->>SR: Section HTML for B\n  SR->>SR: Check signal.aborted again before morph, then morph\n  SR-->>B: HTML of the latest render\n  SR-->>A: Same latest HTML (via pendingRender.promise)\n","mermaid",[679,896,897,902,907,912,917,922,927,932,938,944,950,956,962,968,974,980,986,992],{"__ignoreMap":744},[748,898,899],{"class":750,"line":751},[748,900,901],{},"sequenceDiagram\n",[748,903,904],{"class":750,"line":805},[748,905,906],{},"  accTitle: Horizon 4.2.0 a new request cancels the old one for the same section\n",[748,908,909],{"class":750,"line":830},[748,910,911],{},"  accDescr: A new renderSection for the same sectionId first aborts the previous request; the cancelled call finds a newer pending render in its catch branch and returns that promise, so both callers receive the HTML of the latest render.\n",[748,913,914],{"class":750,"line":851},[748,915,916],{},"  participant A as Caller A\n",[748,918,919],{"class":750,"line":860},[748,920,921],{},"  participant B as Caller B\n",[748,923,924],{"class":750,"line":866},[748,925,926],{},"  participant SR as SectionRenderer\n",[748,928,929],{"class":750,"line":875},[748,930,931],{},"  participant S as Section Rendering API\n",[748,933,935],{"class":750,"line":934},8,[748,936,937],{},"  A->>SR: renderSection(sectionId)\n",[748,939,941],{"class":750,"line":940},9,[748,942,943],{},"  SR->>S: Request A (the sectionId's AbortController)\n",[748,945,947],{"class":750,"line":946},10,[748,948,949],{},"  B->>SR: renderSection(sectionId)\n",[748,951,953],{"class":750,"line":952},11,[748,954,955],{},"  SR->>SR: Abort the previous request for the same section\n",[748,957,959],{"class":750,"line":958},12,[748,960,961],{},"  SR->>S: Request B\n",[748,963,965],{"class":750,"line":964},13,[748,966,967],{},"  SR->>SR: Request A reaches catch: signal.aborted, and a newer pending render exists\n",[748,969,971],{"class":750,"line":970},14,[748,972,973],{},"  SR-->>A: Return pendingRender.promise\n",[748,975,977],{"class":750,"line":976},15,[748,978,979],{},"  S-->>SR: Section HTML for B\n",[748,981,983],{"class":750,"line":982},16,[748,984,985],{},"  SR->>SR: Check signal.aborted again before morph, then morph\n",[748,987,989],{"class":750,"line":988},17,[748,990,991],{},"  SR-->>B: HTML of the latest render\n",[748,993,995],{"class":750,"line":994},18,[748,996,997],{},"  SR-->>A: Same latest HTML (via pendingRender.promise)\n",[764,999,1001],{"id":1000},"_2-a-stable-cache-key","2. A stable cache key",[739,1003,1005],{"className":741,"code":1004,"language":743,"meta":744,"style":744},"url.searchParams.set('section_id', normalizeSectionId(sectionId));\nurl.searchParams.sort();\n",[679,1006,1007,1031],{"__ignoreMap":744},[748,1008,1009,1012,1015,1018,1022,1025,1028],{"class":750,"line":751},[748,1010,1011],{"class":754},"url.searchParams.",[748,1013,1014],{"class":758},"set",[748,1016,1017],{"class":754},"(",[748,1019,1021],{"class":1020},"sYBdl","'section_id'",[748,1023,1024],{"class":754},", ",[748,1026,1027],{"class":758},"normalizeSectionId",[748,1029,1030],{"class":754},"(sectionId));\n",[748,1032,1033,1035,1038],{"class":750,"line":805},[748,1034,1011],{"class":754},[748,1036,1037],{"class":758},"sort",[748,1039,1040],{"class":754},"();\n",[669,1042,1043,1046,1047,1050,1051,1054],{},[679,1044,1045],{},"sort()"," makes ",[679,1048,1049],{},"?a=1&b=2"," and ",[679,1052,1053],{},"?b=2&a=1"," produce the same cache key. Filter parameter order depends on the order the user clicked, so this small detail lets the same set of conditions hit the same cache entry.",[764,1056,1058],{"id":1057},"_3-first-paint-html-pre-stored-in-the-cache","3. First-paint HTML pre-stored in the cache",[739,1060,1062],{"className":741,"code":1061,"language":743,"meta":744,"style":744},"window.addEventListener('load', this.#cachePageSections.bind(this));\n",[679,1063,1064],{"__ignoreMap":744},[748,1065,1066,1069,1072,1074,1077,1079,1082,1085,1088,1090,1092],{"class":750,"line":751},[748,1067,1068],{"class":754},"window.",[748,1070,1071],{"class":758},"addEventListener",[748,1073,1017],{"class":754},[748,1075,1076],{"class":1020},"'load'",[748,1078,1024],{"class":754},[748,1080,1081],{"class":811},"this",[748,1083,1084],{"class":754},".#cachePageSections.",[748,1086,1087],{"class":758},"bind",[748,1089,1017],{"class":754},[748,1091,1081],{"class":811},[748,1093,1094],{"class":754},"));\n",[669,1096,1097,1098,1101,1102,1105,1106,1108],{},"After the page loads, the ",[679,1099,1100],{},"outerHTML"," of every ",[679,1103,1104],{},".shopify-section"," is stored in the cache, keyed by the section-rendering URL for the current page. When a user filters and then returns to the initial URL, the cache hits and no request is sent. Sections containing a Shadow Root aren't cached, because ",[679,1107,1100],{}," doesn't serialize Shadow DOM.",[669,1110,1111,1112,1114,1115,1118,1119,1122],{},"The default for ",[679,1113,759],{},"'s ",[679,1116,1117],{},"cache"," is ",[679,1120,1121],{},"!Shopify.designMode",": in the theme editor the cache is off by default, so merchants don't see stale content after changing settings.",[764,1124,1126],{"id":1125},"_4-request-deduplication-limited","4. Request deduplication (limited)",[669,1128,1129,1132,1133,1136,1137,1140,1141,1143,1144,1146],{},[679,1130,1131],{},"getSectionHTML"," uses ",[679,1134,1135],{},"#pendingPromises"," to merge concurrent requests for the same URL, but only calls ",[687,1138,1139],{},"made without a signal"," register themselves there. ",[679,1142,759],{}," always passes a signal, so its own request can't be reused by others. Conversely, before fetching it checks ",[679,1145,1135],{},", and if a signal-less request for the same URL is already in flight, it reuses that promise.",[669,1148,1149,1150,1155,1156,1158,1159,1162,1163,1166,1167,1169],{},"The typical beneficiary is filter prefetching: ",[673,1151,1154],{"href":1152,"rel":1153},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Ffacets.js",[677],"facets.js"," calls ",[679,1157,1131],{}," (without a signal) after a 200ms debounce on ",[679,1160,1161],{},"pointerenter",", or immediately on ",[679,1164,1165],{},"pointerdown",". By the time the user actually clicks, the response is either already cached or still in flight and picked up by ",[679,1168,759],{},". The cost: a prefetch picked up this way isn't covered by abort; its result just won't be morphed if the render was cancelled.",[715,1171,1173],{"id":1172},"morph-merging-rather-than-replacing","morph: merging rather than replacing",[669,1175,1176,1177,1180,1181,1184,1185,733],{},"Morph's core is the usual child-node comparison: two nodes are \"the same\" if their ",[679,1178,1179],{},"tagName"," and key (by default ",[679,1182,1183],{},"id",") match. Same nodes are updated recursively; otherwise later siblings are searched for a match before deciding to move, insert or replace. This part is similar to morphdom and nanomorph and is not covered here. What's worth writing about is how it is specialized for ",[687,1186,1187],{},"e-commerce themes",[764,1189,1191],{"id":1190},"_1-skip-identical-subtrees-but-sync-form-state","1. Skip identical subtrees, but sync form state",[739,1193,1195],{"className":741,"code":1194,"language":743,"meta":744,"style":744},"if (oldNode.isEqualNode(newNode)) {\n  syncFormControlsInSubtree(newEl, oldEl);\n  return oldNode;\n}\n",[679,1196,1197,1210,1218,1225],{"__ignoreMap":744},[748,1198,1199,1201,1204,1207],{"class":750,"line":751},[748,1200,799],{"class":798},[748,1202,1203],{"class":754}," (oldNode.",[748,1205,1206],{"class":758},"isEqualNode",[748,1208,1209],{"class":754},"(newNode)) {\n",[748,1211,1212,1215],{"class":750,"line":805},[748,1213,1214],{"class":758},"  syncFormControlsInSubtree",[748,1216,1217],{"class":754},"(newEl, oldEl);\n",[748,1219,1220,1222],{"class":750,"line":830},[748,1221,869],{"class":798},[748,1223,1224],{"class":754}," oldNode;\n",[748,1226,1227],{"class":750,"line":851},[748,1228,878],{"class":754},[669,1230,1231,1233,1234,1237,1238,1241,1242,1024,1245,1050,1248,1251,1252,1024,1255,1050,1258,733],{},[679,1232,1206],{}," lets most unchanged subtrees be skipped outright. But it compares ",[687,1235,1236],{},"serialized markup",": the server outputs ",[679,1239,1240],{},"value=\"1\""," both times, the user changed the input to 3, and the two trees are still judged \"equal.\" So before skipping, it walks the ",[679,1243,1244],{},"input",[679,1246,1247],{},"option",[679,1249,1250],{},"textarea"," elements in the subtree and syncs live state such as ",[679,1253,1254],{},"value",[679,1256,1257],{},"checked",[679,1259,1260],{},"selected",[669,1262,1263],{},"The source comment spells this out: identical structure means the controls line up one-to-one, so they can be paired by index.",[764,1265,1267],{"id":1266},"_2-protecting-the-user-is-editing","2. Protecting \"the user is editing\"",[669,1269,1270],{},"In the cart, a user is typing a quantity while another request returns and triggers a cart-items morph. Overwriting directly would wipe the half-typed number.",[669,1272,1273,1274,1277,1278,1281],{},"Horizon solves it with a ",[687,1275,1276],{},"client-only"," marker, ",[679,1279,1280],{},"data-skip-value-update",", but the condition isn't just \"is the marker present\":",[739,1283,1285],{"className":741,"code":1284,"language":743,"meta":744,"style":744},"function skipsValueUpdate(newNode, oldNode) {\n  return (\n    oldNode.matches(':focus') &&\n    !newNode.matches(':disabled') &&\n    newNode.hasAttribute('data-skip-value-update') &&\n    oldNode.hasAttribute('data-skip-value-update')\n  );\n}\n",[679,1286,1287,1309,1316,1335,1354,1371,1384,1389],{"__ignoreMap":744},[748,1288,1289,1292,1295,1297,1301,1303,1306],{"class":750,"line":751},[748,1290,1291],{"class":798},"function",[748,1293,1294],{"class":758}," skipsValueUpdate",[748,1296,1017],{"class":754},[748,1298,1300],{"class":1299},"sqxcx","newNode",[748,1302,1024],{"class":754},[748,1304,1305],{"class":1299},"oldNode",[748,1307,1308],{"class":754},") {\n",[748,1310,1311,1313],{"class":750,"line":805},[748,1312,869],{"class":798},[748,1314,1315],{"class":754}," (\n",[748,1317,1318,1321,1324,1326,1329,1332],{"class":750,"line":830},[748,1319,1320],{"class":754},"    oldNode.",[748,1322,1323],{"class":758},"matches",[748,1325,1017],{"class":754},[748,1327,1328],{"class":1020},"':focus'",[748,1330,1331],{"class":754},") ",[748,1333,1334],{"class":798},"&&\n",[748,1336,1337,1340,1343,1345,1347,1350,1352],{"class":750,"line":851},[748,1338,1339],{"class":798},"    !",[748,1341,1342],{"class":754},"newNode.",[748,1344,1323],{"class":758},[748,1346,1017],{"class":754},[748,1348,1349],{"class":1020},"':disabled'",[748,1351,1331],{"class":754},[748,1353,1334],{"class":798},[748,1355,1356,1359,1362,1364,1367,1369],{"class":750,"line":860},[748,1357,1358],{"class":754},"    newNode.",[748,1360,1361],{"class":758},"hasAttribute",[748,1363,1017],{"class":754},[748,1365,1366],{"class":1020},"'data-skip-value-update'",[748,1368,1331],{"class":754},[748,1370,1334],{"class":798},[748,1372,1373,1375,1377,1379,1381],{"class":750,"line":866},[748,1374,1320],{"class":754},[748,1376,1361],{"class":758},[748,1378,1017],{"class":754},[748,1380,1366],{"class":1020},[748,1382,1383],{"class":754},")\n",[748,1385,1386],{"class":750,"line":875},[748,1387,1388],{"class":754},"  );\n",[748,1390,1391],{"class":750,"line":934},[748,1392,878],{"class":754},[669,1394,1395,1396,1399,1400,1403,1404,1406,1407,1410,1411,1414,1415,1418],{},"Why also require ",[679,1397,1398],{},":focus","? The comment lays out the full reasoning: the server may render the input as ",[679,1401,1402],{},"disabled","; copying ",[679,1405,1402],{}," onto it blurs the input and the blur handler clears the marker; but ",[679,1408,1409],{},"onBeforeUpdate"," has already preserved the marker onto the new node, and the same ",[679,1412,1413],{},"copyAttributes"," pass writes it back. Checking the marker alone, it could never be cleared and the input would be frozen for good. ",[687,1416,1417],{},"Using live focus as the authoritative signal for \"editing in progress\""," downgrades that leak from a permanent failure to a harmless one.",[739,1420,1422],{"className":892,"code":1421,"language":894,"meta":744,"style":744},"sequenceDiagram\n  accTitle: Horizon 4.2.0 why data-skip-value-update can't be cleared when only the marker is checked\n  accDescr: In one morph pass, onBeforeUpdate first preserves the marker onto the new node, copying disabled blurs the input, the blur handler clears the marker and copyAttributes writes it back; checking the marker alone freezes the input for good, while the :focus condition stops skipping once focus is lost.\n  participant M as morph (same pass)\n  participant N as New node\n  participant I as Input on the page\n  participant BH as Blur handler\n  M->>N: onBeforeUpdate preserves data-skip-value-update onto the new node\n  M->>I: copyAttributes copies the server-rendered disabled\n  I->>BH: Input loses focus\n  BH->>I: Clear data-skip-value-update\n  M->>I: The same copyAttributes pass writes the marker back\n  Note over M,BH: Marker alone can never be cleared and the input freezes. With live :focus as the signal, value updates resume once focus is lost\n",[679,1423,1424,1428,1433,1438,1443,1448,1453,1458,1463,1468,1473,1478,1483],{"__ignoreMap":744},[748,1425,1426],{"class":750,"line":751},[748,1427,901],{},[748,1429,1430],{"class":750,"line":805},[748,1431,1432],{},"  accTitle: Horizon 4.2.0 why data-skip-value-update can't be cleared when only the marker is checked\n",[748,1434,1435],{"class":750,"line":830},[748,1436,1437],{},"  accDescr: In one morph pass, onBeforeUpdate first preserves the marker onto the new node, copying disabled blurs the input, the blur handler clears the marker and copyAttributes writes it back; checking the marker alone freezes the input for good, while the :focus condition stops skipping once focus is lost.\n",[748,1439,1440],{"class":750,"line":851},[748,1441,1442],{},"  participant M as morph (same pass)\n",[748,1444,1445],{"class":750,"line":860},[748,1446,1447],{},"  participant N as New node\n",[748,1449,1450],{"class":750,"line":866},[748,1451,1452],{},"  participant I as Input on the page\n",[748,1454,1455],{"class":750,"line":875},[748,1456,1457],{},"  participant BH as Blur handler\n",[748,1459,1460],{"class":750,"line":934},[748,1461,1462],{},"  M->>N: onBeforeUpdate preserves data-skip-value-update onto the new node\n",[748,1464,1465],{"class":750,"line":940},[748,1466,1467],{},"  M->>I: copyAttributes copies the server-rendered disabled\n",[748,1469,1470],{"class":750,"line":946},[748,1471,1472],{},"  I->>BH: Input loses focus\n",[748,1474,1475],{"class":750,"line":952},[748,1476,1477],{},"  BH->>I: Clear data-skip-value-update\n",[748,1479,1480],{"class":750,"line":958},[748,1481,1482],{},"  M->>I: The same copyAttributes pass writes the marker back\n",[748,1484,1485],{"class":750,"line":964},[748,1486,1487],{},"  Note over M,BH: Marker alone can never be cleared and the input freezes. With live :focus as the signal, value updates resume once focus is lost\n",[669,1489,1490],{},"That comment is worth reading in full; it's a model of how to document the lifecycle of a state marker.",[669,1492,1493,1494,1496,1497,1500,1501,1496,1503,1506,1507,1510,1511,1513,1514,1516],{},"There's a subtler point too: while an input's dirty value flag is false, changes to the ",[679,1495,1254],{}," ",[687,1498,1499],{},"attribute"," are reflected directly in the ",[679,1502,1254],{},[687,1504,1505],{},"property",", which is what the user sees. The comment notes that focus plus ",[679,1508,1509],{},"select()"," doesn't set that flag, so ",[679,1512,1413],{}," applies the same skip when copying or removing the ",[679,1515,1254],{}," attribute.",[764,1518,1520],{"id":1519},"_3-preserving-runtime-state","3. Preserving runtime state",[669,1522,1523],{},"Before merging, morph copies state the server doesn't know about from the old node onto the new one, in two places.",[669,1525,1526,1529],{},[679,1527,1528],{},"MORPH_OPTIONS.onBeforeUpdate",":",[692,1531,1532,1551,1565],{},[695,1533,1534,1535,1024,1538,1024,1541,1024,1544,1547,1548,1550],{},"A list of attributes: ",[679,1536,1537],{},"product-grid-view",[679,1539,1540],{},"data-current-checked",[679,1542,1543],{},"data-previous-checked",[679,1545,1546],{},"cart-summary-sticky",", plus ",[679,1549,1280],{}," from above;",[695,1552,1553,1554,1557,1558,1050,1561,1564],{},"Runtime inline ",[679,1555,1556],{},"style"," on ",[679,1559,1560],{},"floating-panel-component",[679,1562,1563],{},"fieldset.variant-option",";",[695,1566,1567,1568,733],{},"A temporary ",[679,1569,1570],{},"style.viewTransitionName",[669,1572,1573,1576],{},[679,1574,1575],{},"updateNode"," (only when old and new attributes differ):",[692,1578,1579,1594],{},[695,1580,1581,1557,1584,1050,1586,1589,1590,1593],{},[679,1582,1583],{},"open",[679,1585,728],{},[679,1587,1588],{},"\u003Cdialog>",", unless the new node carries ",[679,1591,1592],{},"declarative-open",", meaning the server states it explicitly;",[695,1595,1596,1050,1599,1602,1603,1605,1606,1611,1612,1614,1615,1620],{},[679,1597,1598],{},"slot",[679,1600,1601],{},"sizes",": ",[679,1604,1598],{}," is assigned at runtime by ",[673,1607,1610],{"href":1608,"rel":1609},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Foverflow-list.js",[677],"overflow-list.js",", and ",[679,1613,1601],{}," is rewritten by ",[673,1616,1619],{"href":1617,"rel":1618},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fresults-list.js",[677],"results-list.js"," according to the layout.",[669,1622,1623],{},"Two more are about performance:",[692,1625,1626,1645],{},[695,1627,1628,1024,1631,1024,1634,1050,1637,1640,1641,1644],{},[679,1629,1630],{},"src",[679,1632,1633],{},"href",[679,1635,1636],{},"srcset",[679,1638,1639],{},"poster"," are ",[687,1642,1643],{},"not rewritten"," when unchanged, avoiding duplicate network requests;",[695,1646,1647,1650,1651,733],{},[679,1648,1649],{},"attributesEqual"," compares attributes shallowly by position. Re-renders of the same template emit attributes in the same order; a different order only causes a false \"unequal\" and one extra copy, never a false \"equal.\" The comment explicitly calls out this ",[687,1652,1653],{},"asymmetric safety",[764,1655,1657],{"id":1656},"_4-three-skip-switches","4. Three skip switches",[1659,1660,1661,1674],"table",{},[1662,1663,1664],"thead",{},[1665,1666,1667,1671],"tr",{},[1668,1669,1670],"th",{},"Attribute",[1668,1672,1673],{},"Effect",[1675,1676,1677,1688,1698],"tbody",{},[1665,1678,1679,1685],{},[1680,1681,1682],"td",{},[679,1683,1684],{},"data-skip-node-update",[1680,1686,1687],{},"When on both old and new nodes, the node itself isn't changed, but its children are processed",[1665,1689,1690,1695],{},[1680,1691,1692],{},[679,1693,1694],{},"data-skip-subtree-update",[1680,1696,1697],{},"When on both old and new nodes, the node's own attributes are updated as usual and its children are left alone",[1665,1699,1700,1704],{},[1680,1701,1702],{},[679,1703,1280],{},[1680,1705,1706],{},"Only the value of an input being edited is kept; everything else updates; conditions above",[669,1708,1709,1710,1713,1714,1716,1717,1719],{},"The first two require the marker on ",[687,1711,1712],{},"both"," old and new nodes, which means the server template must output it explicitly: a contract in which the server declares which regions belong to the client. ",[679,1715,1280],{}," is the opposite: only the client sets it, and ",[679,1718,1409],{}," copies it onto the new node.",[764,1721,1723],{"id":1722},"_5-platform-special-cases","5. Platform special cases",[692,1725,1726,1732,1739,1746],{},[695,1727,1728,1731],{},[679,1729,1730],{},"\u003Cshopify-accelerated-checkout-cart>"," is skipped entirely: Shopify's own scripts manage the express checkout buttons;",[695,1733,1734,1735,1738],{},"The ",[679,1736,1737],{},"\u003C!--shopify:rendered_by_section_api-->"," comment the theme editor injects into section renders is discarded;",[695,1740,1741,1742,1745],{},"For components that already have a Shadow Root attached, the new HTML's ",[679,1743,1744],{},"\u003Ctemplate shadowrootmode=\"open\">"," is rejected;",[695,1747,1748,1749,1752,1753,1755,1756,1759],{},"After morphing, ",[679,1750,1751],{},"\u003Cscript>"," elements with a ",[679,1754,1630],{}," inside ",[679,1757,1758],{},".shopify-app-block"," are recreated. The comment explains that browsers don't re-execute morphed scripts, and app scripts often cache DOM references at initialization.",[715,1761,1763],{"id":1762},"things-worth-questioning","Things worth questioning",[692,1765,1766,1785,1802,1829],{},[695,1767,1768,1496,1771,1773,1774,1024,1777,1780,1781,1784],{},[687,1769,1770],{},"Business components are hard-coded into a generic morph.",[679,1772,1409],{}," mentions ",[679,1775,1776],{},"FLOATING-PANEL-COMPONENT",[679,1778,1779],{},".variant-option"," and a list of preserved attributes. Each new component that needs runtime state preserved means editing morph's default options again. A better approach would let components declare the attributes to preserve, for example through a shared ",[679,1782,1783],{},"data-preserve-attrs"," convention.",[695,1786,1787,1793,1794,1797,1798,1801],{},[687,1788,1789,1792],{},[679,1790,1791],{},"#cachePageSections"," bails out of the whole loop."," When it hits an already-cached section or one containing a Shadow Root, it uses ",[679,1795,1796],{},"return"," rather than ",[679,1799,1800],{},"continue",", so no later section gets cached. Given the function's intent this looks like an oversight rather than a design choice, but the source doesn't say.",[695,1803,1804,1496,1810,1155,1813,1816,1817,1820,1821,1824,1825,1828],{},[687,1805,1806,1809],{},[679,1807,1808],{},"onAfterUpdate"," receives the new-tree node.",[679,1811,1812],{},"walk",[679,1814,1815],{},"onAfterUpdate(newNode)",", and the new tree in a section refresh comes from ",[679,1818,1819],{},"DOMParser",", where custom elements aren't upgraded, so ",[679,1822,1823],{},"updatedCallback"," very likely doesn't fire; see ",[673,1826,1827],{"href":13},"the Web Components base class",". Not verified in a browser.",[695,1830,1831,1834,1835,1837],{},[687,1832,1833],{},"Morph diffs everything."," When a long list re-renders and only one product changed, the whole subtree is still walked (except parts that hit ",[679,1836,1206],{},"). Fine at a theme's data sizes, but not suited to very long lists.",[715,1839,1841],{"id":1840},"summary","Summary",[669,1843,1844,1845,1529],{},"The essence of this approach is ",[687,1846,1847],{},"\"the server is the only template; the client only merges differences\"",[692,1849,1850,1853,1856],{},[695,1851,1852],{},"Liquid is written once, with no duplicate front-end and back-end templates;",[695,1854,1855],{},"Any setting a merchant changes in the theme editor takes effect automatically after a partial refresh;",[695,1857,1858],{},"The cost is a network round trip per interaction, plus a morph clever enough to preserve runtime state.",[669,1860,1861,1862,1024,1864,1866,1867,1870,1871,733],{},"The amount of edge-case handling Horizon puts into morph (form state, focus, ",[679,1863,1583],{},[679,1865,1598],{},", app scripts) shows that ",[687,1868,1869],{},"the approach works, but a \"smart morph\" is itself a subsystem that needs ongoing maintenance."," Another pattern built on top of morph is covered in ",[673,1872,1873],{"href":14},"keyed lazy hydration",[669,1875,1876],{},"Horizon's LICENSE.md forbids distributing themes derived from its code; this article only analyzes the source, so implement any borrowed ideas yourself.",[1556,1878,1879],{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}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 .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}",{"title":744,"searchDepth":805,"depth":805,"links":1881},[1882,1883,1889,1896,1897],{"id":717,"depth":805,"text":718},{"id":736,"depth":805,"text":737,"children":1884},[1885,1886,1887,1888],{"id":766,"depth":830,"text":767},{"id":1000,"depth":830,"text":1001},{"id":1057,"depth":830,"text":1058},{"id":1125,"depth":830,"text":1126},{"id":1172,"depth":805,"text":1173,"children":1890},[1891,1892,1893,1894,1895],{"id":1190,"depth":830,"text":1191},{"id":1266,"depth":830,"text":1267},{"id":1519,"depth":830,"text":1520},{"id":1656,"depth":830,"text":1657},{"id":1722,"depth":830,"text":1723},{"id":1762,"depth":805,"text":1763},{"id":1840,"depth":805,"text":1841},"dtc",[],"historical","A Horizon 4.2.0 source walkthrough of SectionRenderer and the in-house morph: per-section cancellation and result reuse, sorted cache keys, first-paint caching and limited request deduplication, plus morph's form-state sync, mid-edit protection, runtime state preservation, skip switches and a few debatable couplings.",[1903],"storefront-experience","partial","md",[],[],true,[],{},[],[],[],[13,14,12,18],[1916],"developer",{"title":659,"description":1901},[699,707,1152,1608,1617],[],"published","shopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph",[1923,1924,1925,1926,1927,1928],"Horizon","Shopify","Source analysis","4.2.0","Section Rendering API","morph",[1930],{"theme":1931,"version":1932,"url":675},"horizon","4.2.0 · 5acd1b6b66c02f61d3216e3adace5dd9e0404fc9",[1934],"shopify","2026-10-19",[],"Static reading of assets\u002Fsection-renderer.js, assets\u002Fmorph.js, assets\u002Ffacets.js, assets\u002Foverflow-list.js, assets\u002Fresults-list.js and snippets\u002Flist-filter.liquid at Horizon 4.2.0 commit 5acd1b6. No store, theme editor or browser testing.","2026-10-07","Wa4iVo2TuQdQH3PyHN60sOp__TtNdHv1TM5cP43SwXw",{"topic":1941,"paths":1943},{"title":1942,"path":29},"Storefront and experience",[],[1945,1947,1949,1951],{"title":1946,"path":13},"Horizon's Web Components Base Class: Refs, on: Event Delegation, and the Upgrade Race",{"title":1948,"path":14},"Horizon's Keyed Lazy Hydration: Updating Only Nodes Marked with data-hydration-key",{"title":1950,"path":12},"Horizon's Add-to-Cart Race Handling: Clicking Add While a Variant Switch Is Still Pending",{"title":1952,"path":18},"Horizon's Cross-Document View Transitions: Render Blocking, Bail-Out Conditions and a WebView Blocklist",{"titles":1954,"toolNames":1955,"domainPaths":1968,"reverse":1969},{},{"elevar":1956,"google-ads":1957,"google-analytics":1958,"google-merchant-center":1959,"google-tag-manager":1960,"gorgias":1961,"judge-me":1962,"klaviyo":1963,"meta-ads":1964,"paypal":1965,"shopify":1924,"woocommerce":1966,"wordpress":1967},"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":1970,"measuredBy":1971,"needs":1972,"constrainedBy":1973},[],[],[],[],1792741304949]