[{"data":1,"prerenderedAt":1998},["ShallowReactive",2],{"knowledge-routes":3,"zh:footer-pages":643,"zh:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph":656,"zh:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph:navigation":1958,"zh:related:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fkeyed-hydration,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Ffacets-and-pagination,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcart,\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fvariants,\u002Fshopify\u002Fthemes\u002Fdawn\u002Fsection-rendering":1963,"zh:graph:\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph":1976},{"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},"zh_sitePages\u002Fabout.md","\u002Fabout","关于 WooDawn",{"id":649,"path":650,"title":651},"zh_sitePages\u002Flegal\u002Fprivacy.md","\u002Flegal\u002Fprivacy","隐私说明",{"id":653,"path":654,"title":655},"zh_sitePages\u002Flegal\u002Fterms.md","\u002Flegal\u002Fterms","内容使用说明",{"document":657,"isArticle":1926},{"id":658,"title":659,"abbreviations":660,"aliases":661,"answers":662,"appliesTo":663,"articleType":664,"body":665,"businessModel":1916,"constrainedBy":1917,"currency":1918,"description":1919,"discussionUrl":663,"domains":1920,"evidenceStatus":1922,"extension":1923,"funnel":1924,"implements":1925,"indexable":1926,"measuredBy":1927,"meta":1928,"metric":663,"navigation":1926,"needs":1929,"originalSources":1930,"path":17,"regions":1931,"related":1932,"reviewAfter":663,"roles":1933,"seo":1935,"seoImage":663,"seoTitle":663,"sources":1936,"stages":1937,"status":1938,"stem":1939,"supersededBy":663,"tags":1940,"term":663,"themeSources":1947,"tools":1951,"updatedAt":1953,"uses":1954,"verification":1955,"verifiedAt":1956,"__hash__":1957},"zh_articles\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph.md","Horizon 的分区刷新与 morph：SectionRenderer 的并发控制和 DOM 合并",[],[],[],null,"guide",{"type":666,"value":667,"toc":1898},"minimark",[668,683,691,711,734,739,753,757,782,787,801,808,898,909,1017,1021,1060,1074,1078,1114,1128,1140,1144,1164,1187,1191,1206,1210,1247,1280,1283,1287,1290,1301,1412,1438,1507,1510,1536,1540,1543,1549,1588,1594,1637,1640,1670,1674,1723,1736,1740,1775,1778,1856,1859,1865,1876,1892,1895],[669,670,671,672,682],"p",{},"本文基于 Horizon 4.2.0，源码固定到 ",[673,674,678],"a",{"href":675,"rel":676},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Ftree\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9",[677],"nofollow",[679,680,681],"code",{},"5acd1b6","（核验于 2026-10-07）。结论限于此提交；本篇为静态源码分析，未在店铺中实测。",[669,684,685,686,690],{},"筛选商品、切换变体、修改购物车数量，Horizon 的做法都一样：",[687,688,689],"strong",{},"请求 Section Rendering API 拿到新的 section HTML，再用 morph 把差异应用到现有 DOM 上","。没有客户端模板，也没有 JSON 到 DOM 的映射代码。涉及两个文件：",[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","：请求、并发与缓存",[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","：DOM 差异合并",[669,712,713,714,718,719,723,724,728,729,733],{},"各功能怎样调用这条链路，见",[673,715,717],{"href":716},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fhorizon\u002Ffacets-and-pagination","筛选与分页","、",[673,720,722],{"href":721},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fvariants","变体选择","与",[673,725,727],{"href":726},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcart","购物车","；Dawn 的同类做法见 ",[673,730,732],{"href":731},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fdawn\u002Fsection-rendering","Dawn 的分区渲染","。本文只看这两个文件本身。",[735,736,738],"h2",{"id":737},"为什么不直接-innerhtml","为什么不直接 innerHTML",[669,740,741,744,745,748,749,752],{},[679,742,743],{},"innerHTML"," 替换会丢失焦点、输入框里正在输入的值、",[679,746,747],{},"\u003Cdetails>"," 的展开状态、已初始化的自定义元素实例及其事件监听，还会重新请求图片。morph 的目标是",[687,750,751],{},"只改变化的部分，其余节点原样保留","。",[735,754,756],{"id":755},"sectionrenderer一个-section-同时只有一个渲染","SectionRenderer：一个 section 同时只有一个渲染",[758,759,764],"pre",{"className":760,"code":761,"language":762,"meta":763,"style":763},"language-js shiki shiki-themes github-light","sectionRenderer.renderSection(sectionId, { cache, mode, url, shouldRender, injectStylesheet })\n","js","",[679,765,766],{"__ignoreMap":763},[767,768,771,775,779],"span",{"class":769,"line":770},"line",1,[767,772,774],{"class":773},"sgsFI","sectionRenderer.",[767,776,778],{"class":777},"s7eDp","renderSection",[767,780,781],{"class":773},"(sectionId, { cache, mode, url, shouldRender, injectStylesheet })\n",[783,784,786],"h3",{"id":785},"_1-新请求取消旧请求","1. 新请求取消旧请求",[669,788,789,790,793,794,796,797,800],{},"每个 sectionId 对应一个 ",[679,791,792],{},"AbortController","。新的 ",[679,795,778],{}," 进来时，先 abort 同一 section 的上一次请求；morph 之前还会再检查一次 ",[679,798,799],{},"signal.aborted","。用户快速连点筛选项时，只有最后一次的结果会被应用，不会出现\"旧响应晚到、覆盖新结果\"。",[669,802,803,804,807],{},"被取消的调用者通常也不会拿到空结果。",[679,805,806],{},"#renderSection"," 的 catch 分支里，如果发现同一 section 已经有更新的 pending render，就直接返回那个 promise：",[758,809,811],{"className":760,"code":810,"language":762,"meta":763,"style":763},"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,812,813,822,847,868,877,883,892],{"__ignoreMap":763},[767,814,815,819],{"class":769,"line":770},[767,816,818],{"class":817},"sD7c4","if",[767,820,821],{"class":773}," (abortController.signal.aborted) {\n",[767,823,825,828,832,835,838,841,844],{"class":769,"line":824},2,[767,826,827],{"class":817},"  const",[767,829,831],{"class":830},"sYu0t"," pendingRender",[767,833,834],{"class":817}," =",[767,836,837],{"class":830}," this",[767,839,840],{"class":773},".#pendingRendersBySectionId.",[767,842,843],{"class":777},"get",[767,845,846],{"class":773},"(sectionId);\n",[767,848,850,853,856,859,862,865],{"class":769,"line":849},3,[767,851,852],{"class":817},"  if",[767,854,855],{"class":773}," (pendingRender ",[767,857,858],{"class":817},"&&",[767,860,861],{"class":773}," pendingRender.abortController ",[767,863,864],{"class":817},"!==",[767,866,867],{"class":773}," abortController) {\n",[767,869,871,874],{"class":769,"line":870},4,[767,872,873],{"class":817},"    return",[767,875,876],{"class":773}," pendingRender.promise;\n",[767,878,880],{"class":769,"line":879},5,[767,881,882],{"class":773},"  }\n",[767,884,886,889],{"class":769,"line":885},6,[767,887,888],{"class":817},"  return",[767,890,891],{"class":773}," sectionHTML;\n",[767,893,895],{"class":769,"line":894},7,[767,896,897],{"class":773},"}\n",[669,899,900,901,904,905,908],{},"于是，被新请求顶掉的 ",[679,902,903],{},"await renderSection()"," 调用方拿到的是最新一次渲染的 HTML，不需要关心自己是否被取消了。只有通过 ",[679,906,907],{},"abortRender"," 单纯取消、没有后继渲染时，才返回空字符串。",[758,910,914],{"className":911,"code":912,"language":913,"meta":763,"style":763},"language-mermaid shiki shiki-themes github-light","sequenceDiagram\n  accTitle: Horizon 4.2.0 同一 section 的新请求取消旧请求\n  accDescr: 同一 sectionId 的新 renderSection 先 abort 上一次请求；被取消的调用在 catch 分支发现有更新的 pending render，直接返回那个 promise，两个调用方都拿到最新一次渲染的 HTML。\n  participant A as 调用方 A\n  participant B as 调用方 B\n  participant SR as SectionRenderer\n  participant S as Section Rendering API\n  A->>SR: renderSection(sectionId)\n  SR->>S: 请求 A（该 sectionId 的 AbortController）\n  B->>SR: renderSection(sectionId)\n  SR->>SR: abort 同一 section 的上一次请求\n  SR->>S: 请求 B\n  SR->>SR: 请求 A 进入 catch：signal.aborted，且已有更新的 pending render\n  SR-->>A: 返回 pendingRender.promise\n  S-->>SR: B 的 section HTML\n  SR->>SR: morph 之前再检查一次 signal.aborted，再 morph\n  SR-->>B: 最新一次渲染的 HTML\n  SR-->>A: 同一份最新 HTML（经 pendingRender.promise）\n","mermaid",[679,915,916,921,926,931,936,941,946,951,957,963,969,975,981,987,993,999,1005,1011],{"__ignoreMap":763},[767,917,918],{"class":769,"line":770},[767,919,920],{},"sequenceDiagram\n",[767,922,923],{"class":769,"line":824},[767,924,925],{},"  accTitle: Horizon 4.2.0 同一 section 的新请求取消旧请求\n",[767,927,928],{"class":769,"line":849},[767,929,930],{},"  accDescr: 同一 sectionId 的新 renderSection 先 abort 上一次请求；被取消的调用在 catch 分支发现有更新的 pending render，直接返回那个 promise，两个调用方都拿到最新一次渲染的 HTML。\n",[767,932,933],{"class":769,"line":870},[767,934,935],{},"  participant A as 调用方 A\n",[767,937,938],{"class":769,"line":879},[767,939,940],{},"  participant B as 调用方 B\n",[767,942,943],{"class":769,"line":885},[767,944,945],{},"  participant SR as SectionRenderer\n",[767,947,948],{"class":769,"line":894},[767,949,950],{},"  participant S as Section Rendering API\n",[767,952,954],{"class":769,"line":953},8,[767,955,956],{},"  A->>SR: renderSection(sectionId)\n",[767,958,960],{"class":769,"line":959},9,[767,961,962],{},"  SR->>S: 请求 A（该 sectionId 的 AbortController）\n",[767,964,966],{"class":769,"line":965},10,[767,967,968],{},"  B->>SR: renderSection(sectionId)\n",[767,970,972],{"class":769,"line":971},11,[767,973,974],{},"  SR->>SR: abort 同一 section 的上一次请求\n",[767,976,978],{"class":769,"line":977},12,[767,979,980],{},"  SR->>S: 请求 B\n",[767,982,984],{"class":769,"line":983},13,[767,985,986],{},"  SR->>SR: 请求 A 进入 catch：signal.aborted，且已有更新的 pending render\n",[767,988,990],{"class":769,"line":989},14,[767,991,992],{},"  SR-->>A: 返回 pendingRender.promise\n",[767,994,996],{"class":769,"line":995},15,[767,997,998],{},"  S-->>SR: B 的 section HTML\n",[767,1000,1002],{"class":769,"line":1001},16,[767,1003,1004],{},"  SR->>SR: morph 之前再检查一次 signal.aborted，再 morph\n",[767,1006,1008],{"class":769,"line":1007},17,[767,1009,1010],{},"  SR-->>B: 最新一次渲染的 HTML\n",[767,1012,1014],{"class":769,"line":1013},18,[767,1015,1016],{},"  SR-->>A: 同一份最新 HTML（经 pendingRender.promise）\n",[783,1018,1020],{"id":1019},"_2-稳定的缓存键","2. 稳定的缓存键",[758,1022,1024],{"className":760,"code":1023,"language":762,"meta":763,"style":763},"url.searchParams.set('section_id', normalizeSectionId(sectionId));\nurl.searchParams.sort();\n",[679,1025,1026,1050],{"__ignoreMap":763},[767,1027,1028,1031,1034,1037,1041,1044,1047],{"class":769,"line":770},[767,1029,1030],{"class":773},"url.searchParams.",[767,1032,1033],{"class":777},"set",[767,1035,1036],{"class":773},"(",[767,1038,1040],{"class":1039},"sYBdl","'section_id'",[767,1042,1043],{"class":773},", ",[767,1045,1046],{"class":777},"normalizeSectionId",[767,1048,1049],{"class":773},"(sectionId));\n",[767,1051,1052,1054,1057],{"class":769,"line":824},[767,1053,1030],{"class":773},[767,1055,1056],{"class":777},"sort",[767,1058,1059],{"class":773},"();\n",[669,1061,1062,1065,1066,1069,1070,1073],{},[679,1063,1064],{},"sort()"," 让 ",[679,1067,1068],{},"?a=1&b=2"," 和 ",[679,1071,1072],{},"?b=2&a=1"," 得到同一个缓存键。筛选参数的顺序取决于用户点击顺序，这个小细节能让同一组条件命中同一条缓存。",[783,1075,1077],{"id":1076},"_3-首屏-html-预存为缓存","3. 首屏 HTML 预存为缓存",[758,1079,1081],{"className":760,"code":1080,"language":762,"meta":763,"style":763},"window.addEventListener('load', this.#cachePageSections.bind(this));\n",[679,1082,1083],{"__ignoreMap":763},[767,1084,1085,1088,1091,1093,1096,1098,1101,1104,1107,1109,1111],{"class":769,"line":770},[767,1086,1087],{"class":773},"window.",[767,1089,1090],{"class":777},"addEventListener",[767,1092,1036],{"class":773},[767,1094,1095],{"class":1039},"'load'",[767,1097,1043],{"class":773},[767,1099,1100],{"class":830},"this",[767,1102,1103],{"class":773},".#cachePageSections.",[767,1105,1106],{"class":777},"bind",[767,1108,1036],{"class":773},[767,1110,1100],{"class":830},[767,1112,1113],{"class":773},"));\n",[669,1115,1116,1117,1120,1121,1124,1125,1127],{},"页面加载完后，把每个 ",[679,1118,1119],{},".shopify-section"," 的 ",[679,1122,1123],{},"outerHTML"," 存进缓存，键就是当前 URL 对应的分区渲染地址。用户筛选后再回到初始 URL 时，可以直接命中缓存，不发请求。包含 Shadow Root 的 section 不缓存，因为 ",[679,1126,1123],{}," 不会序列化 Shadow DOM。",[669,1129,1130,1120,1132,1135,1136,1139],{},[679,1131,778],{},[679,1133,1134],{},"cache"," 默认值是 ",[679,1137,1138],{},"!Shopify.designMode","：在主题编辑器里默认不用缓存，避免商家改了设置却看到旧内容。",[783,1141,1143],{"id":1142},"_4-请求去重有限","4. 请求去重（有限）",[669,1145,1146,1149,1150,1153,1154,1157,1158,1160,1161,1163],{},[679,1147,1148],{},"getSectionHTML"," 用 ",[679,1151,1152],{},"#pendingPromises"," 合并同一 URL 的并发请求，但只有",[687,1155,1156],{},"没传 signal 的调用","才会把自己登记进去。",[679,1159,778],{}," 总是传 signal，所以它自己的请求不会被别人复用；反过来，它在发请求前会先查 ",[679,1162,1152],{},"，遇到同一 URL 已有未传 signal 的请求在途时，直接复用那个 promise。",[669,1165,1166,1167,1172,1173,1176,1177,1180,1181,1183,1184,1186],{},"典型受益者是筛选项的预取：",[673,1168,1171],{"href":1169,"rel":1170},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Ffacets.js",[677],"facets.js"," 在 ",[679,1174,1175],{},"pointerenter"," 防抖 200ms 后、或 ",[679,1178,1179],{},"pointerdown"," 时立即调用 ",[679,1182,1148],{}," 预取（不传 signal）。用户真正点下去时，响应要么已经进了缓存，要么还在途、被 ",[679,1185,778],{}," 直接接上。代价是：接上的这个预取请求不受 abort 控制，只是结果到达后不会被 morph。",[735,1188,1190],{"id":1189},"morph揉合而不是替换","morph：揉合而不是替换",[669,1192,1193,1194,1197,1198,1201,1202,1205],{},"morph 的主体是常见的子节点对比：按 ",[679,1195,1196],{},"tagName"," 和 key（默认用 ",[679,1199,1200],{},"id","）判断两个节点是否\"相同\"；相同就递归更新，不同就在后续兄弟节点里找匹配项，再决定移动、插入还是替换。这部分和 morphdom、nanomorph 类似，不展开。值得写的是它针对",[687,1203,1204],{},"电商主题","做的特化。",[783,1207,1209],{"id":1208},"_1-子树相同则整棵跳过但要补表单状态","1. 子树相同则整棵跳过，但要补表单状态",[758,1211,1213],{"className":760,"code":1212,"language":762,"meta":763,"style":763},"if (oldNode.isEqualNode(newNode)) {\n  syncFormControlsInSubtree(newEl, oldEl);\n  return oldNode;\n}\n",[679,1214,1215,1228,1236,1243],{"__ignoreMap":763},[767,1216,1217,1219,1222,1225],{"class":769,"line":770},[767,1218,818],{"class":817},[767,1220,1221],{"class":773}," (oldNode.",[767,1223,1224],{"class":777},"isEqualNode",[767,1226,1227],{"class":773},"(newNode)) {\n",[767,1229,1230,1233],{"class":769,"line":824},[767,1231,1232],{"class":777},"  syncFormControlsInSubtree",[767,1234,1235],{"class":773},"(newEl, oldEl);\n",[767,1237,1238,1240],{"class":769,"line":849},[767,1239,888],{"class":817},[767,1241,1242],{"class":773}," oldNode;\n",[767,1244,1245],{"class":769,"line":870},[767,1246,897],{"class":773},[669,1248,1249,1251,1252,1255,1256,1259,1260,718,1263,718,1266,1269,1270,718,1273,718,1276,1279],{},[679,1250,1224],{}," 能让大部分没有变化的子树直接跳过。但它比较的是",[687,1253,1254],{},"序列化的标记","：服务端两次都输出 ",[679,1257,1258],{},"value=\"1\"","，用户在输入框里改成了 3，两棵树仍被判为\"相等\"。所以跳过之前，要再遍历一遍子树里的 ",[679,1261,1262],{},"input",[679,1264,1265],{},"option",[679,1267,1268],{},"textarea","，同步 ",[679,1271,1272],{},"value",[679,1274,1275],{},"checked",[679,1277,1278],{},"selected"," 等实时状态。",[669,1281,1282],{},"源码注释把这一点讲得很清楚：结构相同就意味着控件按下标一一对应，可以直接按索引配对。",[783,1284,1286],{"id":1285},"_2-用户正在编辑保护","2. \"用户正在编辑\"保护",[669,1288,1289],{},"购物车里，用户正在输入数量的同时，另一个请求返回、触发了 cart-items 的 morph。如果直接覆盖，输入到一半的数字就没了。",[669,1291,1292,1293,1296,1297,1300],{},"Horizon 用一个",[687,1294,1295],{},"只在客户端存在","的标记 ",[679,1298,1299],{},"data-skip-value-update"," 解决，但判断条件不只是\"有没有标记\"：",[758,1302,1304],{"className":760,"code":1303,"language":762,"meta":763,"style":763},"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,1305,1306,1328,1335,1354,1373,1390,1403,1408],{"__ignoreMap":763},[767,1307,1308,1311,1314,1316,1320,1322,1325],{"class":769,"line":770},[767,1309,1310],{"class":817},"function",[767,1312,1313],{"class":777}," skipsValueUpdate",[767,1315,1036],{"class":773},[767,1317,1319],{"class":1318},"sqxcx","newNode",[767,1321,1043],{"class":773},[767,1323,1324],{"class":1318},"oldNode",[767,1326,1327],{"class":773},") {\n",[767,1329,1330,1332],{"class":769,"line":824},[767,1331,888],{"class":817},[767,1333,1334],{"class":773}," (\n",[767,1336,1337,1340,1343,1345,1348,1351],{"class":769,"line":849},[767,1338,1339],{"class":773},"    oldNode.",[767,1341,1342],{"class":777},"matches",[767,1344,1036],{"class":773},[767,1346,1347],{"class":1039},"':focus'",[767,1349,1350],{"class":773},") ",[767,1352,1353],{"class":817},"&&\n",[767,1355,1356,1359,1362,1364,1366,1369,1371],{"class":769,"line":870},[767,1357,1358],{"class":817},"    !",[767,1360,1361],{"class":773},"newNode.",[767,1363,1342],{"class":777},[767,1365,1036],{"class":773},[767,1367,1368],{"class":1039},"':disabled'",[767,1370,1350],{"class":773},[767,1372,1353],{"class":817},[767,1374,1375,1378,1381,1383,1386,1388],{"class":769,"line":879},[767,1376,1377],{"class":773},"    newNode.",[767,1379,1380],{"class":777},"hasAttribute",[767,1382,1036],{"class":773},[767,1384,1385],{"class":1039},"'data-skip-value-update'",[767,1387,1350],{"class":773},[767,1389,1353],{"class":817},[767,1391,1392,1394,1396,1398,1400],{"class":769,"line":885},[767,1393,1339],{"class":773},[767,1395,1380],{"class":777},[767,1397,1036],{"class":773},[767,1399,1385],{"class":1039},[767,1401,1402],{"class":773},")\n",[767,1404,1405],{"class":769,"line":894},[767,1406,1407],{"class":773},"  );\n",[767,1409,1410],{"class":769,"line":953},[767,1411,897],{"class":773},[669,1413,1414,1415,1418,1419,1422,1423,1425,1426,1429,1430,1433,1434,1437],{},"为什么还要求 ",[679,1416,1417],{},":focus","？注释里有一段完整的推理：服务端可能把这个输入框渲染成 ",[679,1420,1421],{},"disabled","；",[679,1424,1421],{}," 被复制过去会让输入框失焦，blur 处理器随即清除标记；但 ",[679,1427,1428],{},"onBeforeUpdate"," 已经先把标记保留到了新节点上，同一轮 ",[679,1431,1432],{},"copyAttributes"," 又把它写回来。只看标记的话，它永远清不掉，输入框从此冻结。",[687,1435,1436],{},"以实时焦点作为\"正在编辑\"的权威信号","，就把这种泄漏从永久故障降级为无害。",[758,1439,1441],{"className":911,"code":1440,"language":913,"meta":763,"style":763},"sequenceDiagram\n  accTitle: Horizon 4.2.0 只看标记时 data-skip-value-update 为何清不掉\n  accDescr: 同一轮 morph 中，onBeforeUpdate 先把标记保留到新节点，复制 disabled 让输入框失焦，blur 处理器清除标记，copyAttributes 又把它写回；只看标记会让输入框永久冻结，加上 :focus 条件后失焦即不再跳过。\n  participant M as morph（同一轮）\n  participant N as 新节点\n  participant I as 页面上的输入框\n  participant BH as blur 处理器\n  M->>N: onBeforeUpdate 把 data-skip-value-update 保留到新节点\n  M->>I: copyAttributes 复制服务端渲染的 disabled\n  I->>BH: 输入框失焦\n  BH->>I: 清除 data-skip-value-update\n  M->>I: 同一轮 copyAttributes 又把标记写回\n  Note over M,BH: 只看标记就永远清不掉，输入框冻结；以实时 :focus 为准时，失焦后不再跳过值更新\n",[679,1442,1443,1447,1452,1457,1462,1467,1472,1477,1482,1487,1492,1497,1502],{"__ignoreMap":763},[767,1444,1445],{"class":769,"line":770},[767,1446,920],{},[767,1448,1449],{"class":769,"line":824},[767,1450,1451],{},"  accTitle: Horizon 4.2.0 只看标记时 data-skip-value-update 为何清不掉\n",[767,1453,1454],{"class":769,"line":849},[767,1455,1456],{},"  accDescr: 同一轮 morph 中，onBeforeUpdate 先把标记保留到新节点，复制 disabled 让输入框失焦，blur 处理器清除标记，copyAttributes 又把它写回；只看标记会让输入框永久冻结，加上 :focus 条件后失焦即不再跳过。\n",[767,1458,1459],{"class":769,"line":870},[767,1460,1461],{},"  participant M as morph（同一轮）\n",[767,1463,1464],{"class":769,"line":879},[767,1465,1466],{},"  participant N as 新节点\n",[767,1468,1469],{"class":769,"line":885},[767,1470,1471],{},"  participant I as 页面上的输入框\n",[767,1473,1474],{"class":769,"line":894},[767,1475,1476],{},"  participant BH as blur 处理器\n",[767,1478,1479],{"class":769,"line":953},[767,1480,1481],{},"  M->>N: onBeforeUpdate 把 data-skip-value-update 保留到新节点\n",[767,1483,1484],{"class":769,"line":959},[767,1485,1486],{},"  M->>I: copyAttributes 复制服务端渲染的 disabled\n",[767,1488,1489],{"class":769,"line":965},[767,1490,1491],{},"  I->>BH: 输入框失焦\n",[767,1493,1494],{"class":769,"line":971},[767,1495,1496],{},"  BH->>I: 清除 data-skip-value-update\n",[767,1498,1499],{"class":769,"line":977},[767,1500,1501],{},"  M->>I: 同一轮 copyAttributes 又把标记写回\n",[767,1503,1504],{"class":769,"line":983},[767,1505,1506],{},"  Note over M,BH: 只看标记就永远清不掉，输入框冻结；以实时 :focus 为准时，失焦后不再跳过值更新\n",[669,1508,1509],{},"这段注释值得原文细读，它示范了怎样为一个状态标记写清楚生命周期。",[669,1511,1512,1513,1515,1516,1519,1520,1515,1522,1525,1526,1529,1530,1532,1533,1535],{},"还有一个更隐蔽的点：输入框的 dirty value flag 为 false 时，",[679,1514,1272],{}," ",[687,1517,1518],{},"attribute"," 的变化会直接反映到 ",[679,1521,1272],{},[687,1523,1524],{},"property","，也就是用户看到的值上。注释指出 focus 加 ",[679,1527,1528],{},"select()"," 并不会把这个 flag 置为 true，所以 ",[679,1531,1432],{}," 在复制或删除 ",[679,1534,1272],{}," attribute 时也做了同样的跳过。",[783,1537,1539],{"id":1538},"_3-保留运行时状态","3. 保留运行时状态",[669,1541,1542],{},"合并之前，morph 把旧节点上\"服务端不知道\"的状态抄到新节点上，分在两处：",[669,1544,1545,1548],{},[679,1546,1547],{},"MORPH_OPTIONS.onBeforeUpdate","：",[692,1550,1551,1569,1582],{},[695,1552,1553,1554,718,1557,718,1560,718,1563,1566,1567,1422],{},"一份名单内的属性：",[679,1555,1556],{},"product-grid-view",[679,1558,1559],{},"data-current-checked",[679,1561,1562],{},"data-previous-checked",[679,1564,1565],{},"cart-summary-sticky","，以及上面的 ",[679,1568,1299],{},[695,1570,1571,1574,1575,1578,1579,1422],{},[679,1572,1573],{},"floating-panel-component"," 与 ",[679,1576,1577],{},"fieldset.variant-option"," 上运行时写入的 inline ",[679,1580,1581],{},"style",[695,1583,1584,1585,752],{},"临时的 ",[679,1586,1587],{},"style.viewTransitionName",[669,1589,1590,1593],{},[679,1591,1592],{},"updateNode","（仅在新旧属性不同时）：",[692,1595,1596,1611],{},[695,1597,1598,718,1600,1120,1603,1606,1607,1610],{},[679,1599,747],{},[679,1601,1602],{},"\u003Cdialog>",[679,1604,1605],{},"open","，除非新节点带 ",[679,1608,1609],{},"declarative-open","，由服务端显式声明；",[695,1612,1613,1069,1616,1548,1619,1621,1622,1627,1628,1630,1631,1636],{},[679,1614,1615],{},"slot",[679,1617,1618],{},"sizes",[679,1620,1615],{}," 由 ",[673,1623,1626],{"href":1624,"rel":1625},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Foverflow-list.js",[677],"overflow-list.js"," 在运行时分配，",[679,1629,1618],{}," 会被 ",[673,1632,1635],{"href":1633,"rel":1634},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fhorizon\u002Fblob\u002F5acd1b6b66c02f61d3216e3adace5dd9e0404fc9\u002Fassets\u002Fresults-list.js",[677],"results-list.js"," 按布局改写。",[669,1638,1639],{},"另外两条和性能相关：",[692,1641,1642,1661],{},[695,1643,1644,718,1647,718,1650,718,1653,1656,1657,1660],{},[679,1645,1646],{},"src",[679,1648,1649],{},"href",[679,1651,1652],{},"srcset",[679,1654,1655],{},"poster"," 的值不变时",[687,1658,1659],{},"不重写","，避免触发重复的网络请求；",[695,1662,1663,1666,1667,752],{},[679,1664,1665],{},"attributesEqual"," 按位置浅比较属性。同一模板的重新渲染，属性顺序一致；顺序不同只会导致\"误判不等\"、多做一次复制，不会\"误判相等\"。注释特意说明了这种",[687,1668,1669],{},"不对称的安全性",[783,1671,1673],{"id":1672},"_4-三个跳过开关","4. 三个跳过开关",[1675,1676,1677,1690],"table",{},[1678,1679,1680],"thead",{},[1681,1682,1683,1687],"tr",{},[1684,1685,1686],"th",{},"属性",[1684,1688,1689],{},"效果",[1691,1692,1693,1704,1714],"tbody",{},[1681,1694,1695,1701],{},[1696,1697,1698],"td",{},[679,1699,1700],{},"data-skip-node-update",[1696,1702,1703],{},"新旧节点都带时，不改这个节点本身，但递归处理子节点",[1681,1705,1706,1711],{},[1696,1707,1708],{},[679,1709,1710],{},"data-skip-subtree-update",[1696,1712,1713],{},"新旧节点都带时，节点自身属性照常更新，子节点不动",[1681,1715,1716,1720],{},[1696,1717,1718],{},[679,1719,1299],{},[1696,1721,1722],{},"只保留编辑中输入框的值，其余照常更新；生效条件见上文",[669,1724,1725,1726,1729,1730,1732,1733,1735],{},"前两个要求新旧节点",[687,1727,1728],{},"同时","带有标记，意味着服务端模板必须显式输出它，是一种\"服务端声明哪些区域归客户端管\"的契约。",[679,1731,1299],{}," 相反，只由客户端设置，靠 ",[679,1734,1428],{}," 抄到新节点上。",[783,1737,1739],{"id":1738},"_5-平台特例","5. 平台特例",[692,1741,1742,1748,1755,1762],{},[695,1743,1744,1747],{},[679,1745,1746],{},"\u003Cshopify-accelerated-checkout-cart>"," 直接跳过：快捷支付按钮由 Shopify 自己的脚本管理；",[695,1749,1750,1751,1754],{},"主题编辑器里分区渲染注入的 ",[679,1752,1753],{},"\u003C!--shopify:rendered_by_section_api-->"," 注释会被丢弃；",[695,1756,1757,1758,1761],{},"已经 attach 过 Shadow Root 的组件，新 HTML 里的 ",[679,1759,1760],{},"\u003Ctemplate shadowrootmode=\"open\">"," 会被拒绝；",[695,1763,1764,1765,1768,1769,1120,1771,1774],{},"morph 结束后，重建 ",[679,1766,1767],{},".shopify-app-block"," 里带 ",[679,1770,1646],{},[679,1772,1773],{},"\u003Cscript>","。注释说明：浏览器不会重新执行被 morph 过的脚本，而 App 脚本往往在初始化时缓存了 DOM 引用。",[735,1776,1777],{"id":1777},"值得商榷的地方",[692,1779,1780,1799,1818,1847],{},[695,1781,1782,752,1785,1787,1788,718,1791,1794,1795,1798],{},[687,1783,1784],{},"通用 morph 里写死了业务组件",[679,1786,1428],{}," 里有 ",[679,1789,1790],{},"FLOATING-PANEL-COMPONENT",[679,1792,1793],{},".variant-option"," 和一份保留属性名单。每加一个需要保留运行时状态的组件，都要回来改 morph 的默认配置。更好的做法是让组件自己声明需要保留的属性，比如统一的 ",[679,1796,1797],{},"data-preserve-attrs"," 约定。",[695,1800,1801,1810,1811,1813,1814,1817],{},[687,1802,1803,1806,1807],{},[679,1804,1805],{},"#cachePageSections"," 遇到条件就整体 ",[679,1808,1809],{},"return","。循环里遇到已缓存或含 Shadow Root 的 section，用的是 ",[679,1812,1809],{}," 而不是 ",[679,1815,1816],{},"continue","，后面的 section 都不会被缓存。从函数意图看，这更像疏漏而非设计，但源码没有说明。",[695,1819,1820,752,1826,1829,1830,1833,1834,1837,1838,1841,1842,1846],{},[687,1821,1822,1825],{},[679,1823,1824],{},"onAfterUpdate"," 收到的是新树节点",[679,1827,1828],{},"walk"," 调用 ",[679,1831,1832],{},"onAfterUpdate(newNode)","，而分区刷新的新树来自 ",[679,1835,1836],{},"DOMParser","，其中的自定义元素不会升级，",[679,1839,1840],{},"updatedCallback"," 因此很可能不会触发，详见 ",[673,1843,1845],{"href":1844},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base","Web Components 基类","。未在浏览器中验证。",[695,1848,1849,1852,1853,1855],{},[687,1850,1851],{},"morph 是全量对比","。大列表重新渲染时，即使只改了一个商品，也要走完整个子树（命中 ",[679,1854,1224],{}," 的部分除外）。对主题的数据规模来说够用，但不适合超长列表。",[735,1857,1858],{"id":1858},"小结",[669,1860,1861,1862,1548],{},"这套方案的本质是 ",[687,1863,1864],{},"\"服务端是唯一模板，客户端只做差异合并\"",[692,1866,1867,1870,1873],{},[695,1868,1869],{},"Liquid 只写一遍，没有前后端双份模板；",[695,1871,1872],{},"商家在主题编辑器里改的设置，局部刷新后自动生效；",[695,1874,1875],{},"代价是每次交互都要一次网络往返，前端也需要一个足够聪明、能保留运行时状态的 morph。",[669,1877,1878,1879,718,1881,1883,1884,1887,1888,752],{},"Horizon 在 morph 上投入的大量边界处理（表单状态、焦点、",[679,1880,1605],{},[679,1882,1615],{},"、App 脚本）说明：",[687,1885,1886],{},"这条路能走通，但\"聪明的 morph\"本身就是一个需要持续维护的子系统","。建立在 morph 之上的另一种模式见",[673,1889,1891],{"href":1890},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fkeyed-hydration","带键的延迟水合",[669,1893,1894],{},"Horizon 的 LICENSE.md 禁止分发基于其代码的衍生主题，本文只做源码分析，借鉴思路请自行实现。",[1581,1896,1897],{},"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":763,"searchDepth":824,"depth":824,"links":1899},[1900,1901,1907,1914,1915],{"id":737,"depth":824,"text":738},{"id":755,"depth":824,"text":756,"children":1902},[1903,1904,1905,1906],{"id":785,"depth":849,"text":786},{"id":1019,"depth":849,"text":1020},{"id":1076,"depth":849,"text":1077},{"id":1142,"depth":849,"text":1143},{"id":1189,"depth":824,"text":1190,"children":1908},[1909,1910,1911,1912,1913],{"id":1208,"depth":849,"text":1209},{"id":1285,"depth":849,"text":1286},{"id":1538,"depth":849,"text":1539},{"id":1672,"depth":849,"text":1673},{"id":1738,"depth":849,"text":1739},{"id":1777,"depth":824,"text":1777},{"id":1858,"depth":824,"text":1858},"dtc",[],"historical","基于 Horizon 4.2.0 源码，拆解 SectionRenderer 与自研 morph：同分区请求取消与结果复用、排序后的缓存键、首屏预存缓存与有限的请求去重，morph 的表单状态同步、编辑中保护、运行时状态保留与跳过开关，以及几处值得商榷的耦合。",[1921],"storefront-experience","partial","md",[],[89],true,[],{},[],[],[],[13,14,393,390,405,384],[1934],"developer",{"title":659,"description":1919},[699,707,1169,1624,1633],[],"published","shopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph",[1941,1942,1943,1944,1945,1946],"Horizon","Shopify","源码解析","4.2.0","Section Rendering API","morph",[1948],{"theme":1949,"version":1950,"url":675},"horizon","4.2.0 · 5acd1b6b66c02f61d3216e3adace5dd9e0404fc9",[1952],"shopify","2026-10-22",[],"依据所列固定提交分析源码；版本差异、独立实验和店铺集成验证的范围分别见正文，不将旧版结果直接用于其他版本。","2026-10-07","qI22pkGgsYuuKByrRHswSOM3-R-1J8Ak8MQ0-pLRLDQ",{"topic":1959,"paths":1962},{"featured":1960,"title":1961,"path":594},[413,368,382,387,400,389,405,399,391,390,395,404,392,401,370,369,383,380,375,376,381,379,372,384,386,377,374,371,378,367,385,373,398,393,402,394,403,397,396,388,414,13,17,14,18,12,16,15,361],"官方主题解析",[],[1964,1966,1968,1970,1972,1974],{"title":1965,"path":13},"Horizon 的 Web Components 基类：ref 收集、on: 事件委托与升级竞态",{"title":1967,"path":14},"Horizon 的带键延迟水合：只更新 data-hydration-key 标记的节点",{"title":1969,"path":393},"Horizon 筛选、排序与分页：分区刷新、URL 状态与无限滚动",{"title":1971,"path":390},"Horizon 购物车：页面、抽屉与数量更新",{"title":1973,"path":405},"Horizon 变体选择：从选项标记到返回 HTML",{"title":1975,"path":384},"Dawn 的 Section Rendering 用法：前端拿 HTML，不拿 JSON",{"titles":1977,"toolNames":1979,"domainPaths":1992,"reverse":1993},{"\u002Fcommerce\u002Fpartial-page-updates":1978},"局部页面更新：请求、状态与交互保持",{"elevar":1980,"google-ads":1981,"google-analytics":1982,"google-merchant-center":1983,"google-tag-manager":1984,"gorgias":1985,"judge-me":1986,"klaviyo":1987,"meta-ads":1988,"paypal":1989,"shopify":1942,"woocommerce":1990,"wordpress":1991},"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":1994,"measuredBy":1995,"needs":1996,"constrainedBy":1997},[],[],[],[],1792741345409]