[{"data":1,"prerenderedAt":1455},["ShallowReactive",2],{"knowledge-routes":3,"zh:footer-pages":643,"zh:\u002Fshopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events":656,"zh:\u002Fshopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events:navigation":1419,"zh:related:\u002Fshopify\u002Fshopify-theme-management,\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcustom-elements-pubsub,\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcontent-sections-and-animations,\u002Fshopify\u002Fthemes\u002Fdawn\u002Fproduct-media":1424,"zh:graph:\u002Fshopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events":1433},{"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":1378},{"id":658,"title":659,"abbreviations":660,"aliases":661,"answers":662,"appliesTo":663,"articleType":664,"body":665,"businessModel":1368,"constrainedBy":1369,"currency":1370,"description":1371,"discussionUrl":663,"domains":1372,"evidenceStatus":1374,"extension":1375,"funnel":1376,"implements":1377,"indexable":1378,"measuredBy":1379,"meta":1380,"metric":663,"navigation":1378,"needs":1381,"originalSources":1382,"path":385,"regions":1383,"related":1384,"reviewAfter":663,"roles":1385,"seo":1387,"seoImage":663,"seoTitle":663,"sources":1388,"stages":1396,"status":1397,"stem":1398,"supersededBy":663,"tags":1399,"term":663,"themeSources":1405,"tools":1412,"updatedAt":1414,"uses":1415,"verification":1416,"verifiedAt":1417,"__hash__":1418},"zh_articles\u002Fshopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events.md","Dawn 怎样适配主题编辑器：设计模式、编辑器事件与重渲染清理",[],[],[],null,"guide",{"type":666,"value":667,"toc":1352},"minimark",[668,692,697,712,717,790,801,808,815,838,859,864,930,934,959,1088,1104,1113,1127,1131,1164,1176,1179,1182,1252,1255,1292,1295,1308,1312,1316,1319,1342,1345,1348],[669,670,671,672,676,677,687,688,691],"p",{},"本文以 Dawn ",[673,674,675],"strong",{},"v15.3.0","（固定提交 ",[678,679,683],"a",{"href":680,"rel":681},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Ftree\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47",[682],"nofollow",[684,685,686],"code",{},"ecb06c3","）讲解实现；迁移到 ",[673,689,690],{},"v16.0.0"," 时，参阅文末列出的文件差异。实验结论仅适用于各节注明的对象，不能直接用于新版；本文未完成真实店铺集成及新版性能、辅助技术测试。主题编辑器交互尚未实测。",[693,694,696],"h2",{"id":695},"v1530-源码讲解","v15.3.0 源码讲解",[669,698,699,700,703,704,707,708,711],{},"商家修改设置时，主题编辑器会重新渲染受影响的分区，并在 ",[684,701,702],{},"document"," 上派发 ",[684,705,706],{},"shopify:section:load","、",[684,709,710],{},"shopify:block:select"," 等事件。主题如果只考虑店面，就会在编辑器里出现弹窗关不掉、轮播停在错误的一张、动画内容不显示等问题。Dawn 的适配代码不多，但覆盖了最常见的几类问题。",[713,714,716],"h3",{"id":715},"一两个设计模式开关","一、两个“设计模式”开关",[718,719,720,736],"table",{},[721,722,723],"thead",{},[724,725,726,730,733],"tr",{},[727,728,729],"th",{},"开关",[727,731,732],{},"所在层",[727,734,735],{},"Dawn 的用法",[737,738,739,757],"tbody",{},[724,740,741,747,750],{},[742,743,744],"td",{},[684,745,746],{},"request.design_mode",[742,748,749],{},"Liquid",[742,751,752,753,756],{},"只在编辑器中输出 ",[684,754,755],{},"theme-editor.js","，店面访客不会下载它",[724,758,759,764,767],{},[742,760,761],{},[684,762,763],{},"Shopify.designMode",[742,765,766],{},"JS",[742,768,769,770,773,774,777,778,783,784,789],{},"给 ",[684,771,772],{},"\u003Chtml>"," 加 ",[684,775,776],{},"shopify-design-mode"," 类（",[678,779,782],{"href":780,"rel":781},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Flayout\u002Ftheme.liquid#L294-L298",[682],"theme.liquid#L294-L298","）；滚动动画据此注册编辑器事件（",[678,785,788],{"href":786,"rel":787},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fanimations.js#L99-L102",[682],"animations.js#L99-L102","）",[669,791,792,794,795,800],{},[684,793,776],{}," 类让 CSS 也能区分编辑器环境，例如 ",[678,796,799],{"href":797,"rel":798},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fcomponent-product-model.css#L17",[682],"component-product-model.css#L17"," 调整了编辑器中 AR 按钮的显示。",[713,802,804,805,807],{"id":803},"二theme-editorjs-处理的事件","二、",[684,806,755],{}," 处理的事件",[669,809,810,814],{},[678,811,755],{"href":812,"rel":813},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Ftheme-editor.js",[682]," 共 54 行，按事件分为三组：",[669,816,817,820,821,823,824,827,828,831,832,837],{},[673,818,819],{},"选中轮播区块时跳到对应的一张。"," ",[684,822,710],{}," 的目标是 ",[684,825,826],{},".slideshow__slide"," 时，暂停所在轮播，200ms 后滚动到该张；",[684,829,830],{},"block:deselect"," 时，如果轮播原本在自动播放，就恢复播放（",[678,833,836],{"href":834,"rel":835},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Ftheme-editor.js#L6-L26",[682],"#L6-L26","）。商家在侧栏点哪个区块，预览就显示哪一张，不会被自动播放切走。",[669,839,840,843,844,847,848,707,853,858],{},[673,841,842],{},"任何编辑操作都先关闭商品媒体弹窗。"," 分区的加载、排序、选中、取消选中，以及检查器（inspector）的开关，都会调用 ",[684,845,846],{},"hideProductModal()","（",[678,849,852],{"href":850,"rel":851},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Ftheme-editor.js#L1-L4",[682],"#L1-L4",[678,854,857],{"href":855,"rel":856},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Ftheme-editor.js#L46-L54",[682],"#L46-L54","），避免全屏弹窗挡住正在编辑的内容。",[669,860,861],{},[673,862,863],{},"分区重渲染后补做初始化与清理。",[865,866,867,907],"ul",{},[868,869,870,873,874,877,878,881,882,889,890,895,896,898,899,902,903,906],"li",{},[684,871,872],{},"section:load"," 时，把 ",[684,875,876],{},"id"," 以 ",[684,879,880],{},"EnableZoomOnHover"," 开头的脚本标签替换成新标签，让 ",[678,883,886],{"href":884,"rel":885},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fmagnify.js",[682],[684,887,888],{},"magnify.js"," 重新执行（",[678,891,894],{"href":892,"rel":893},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Ftheme-editor.js#L28-L37",[682],"#L28-L37","）。原因是 ",[684,897,888],{}," 不是自定义元素：它在加载时调用一次 ",[684,900,901],{},"enableZoomOnHover(2)","，给当时页面上的图片绑定 ",[684,904,905],{},"onclick","；重渲染出的新图片没有这个处理函数。",[868,908,909,912,913,916,917,920,921,847,924,929],{},[684,910,911],{},"section:unload"," 时，删除所有 ",[684,914,915],{},"data-section"," 等于被卸载分区 ID 的元素，并移除 ",[684,918,919],{},"body"," 上的 ",[684,922,923],{},"overflow-hidden",[678,925,928],{"href":926,"rel":927},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Ftheme-editor.js#L39-L44",[682],"#L39-L44","）。",[713,931,933],{"id":932},"三为什么需要手动清理","三、为什么需要手动清理",[669,935,936,943,944,947,948,951,952,954,955,958],{},[678,937,940],{"href":938,"rel":939},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fglobal.js#L620-L625",[682],[684,941,942],{},"ModalDialog"," 在第一次连接到文档时，把自己移到 ",[684,945,946],{},"\u003Cbody>"," 末尾，以避开父容器的 ",[684,949,950],{},"overflow"," 和层叠上下文；移动前先把所在分区的 ID 记到 ",[684,953,915],{},"，并用 ",[684,956,957],{},"moved"," 标记防止移动后再次触发：",[960,961,966],"pre",{"className":962,"code":963,"language":964,"meta":965,"style":965},"language-js shiki shiki-themes github-light","connectedCallback() {\n  if (this.moved) return;\n  this.moved = true;\n  this.dataset.section = this.closest('.shopify-section').id.replace('shopify-section-', '');\n  document.body.appendChild(this);\n}\n","js","",[684,967,968,981,1004,1021,1067,1082],{"__ignoreMap":965},[969,970,973,977],"span",{"class":971,"line":972},"line",1,[969,974,976],{"class":975},"s7eDp","connectedCallback",[969,978,980],{"class":979},"sgsFI","() {\n",[969,982,984,988,991,995,998,1001],{"class":971,"line":983},2,[969,985,987],{"class":986},"sD7c4","  if",[969,989,990],{"class":979}," (",[969,992,994],{"class":993},"sYu0t","this",[969,996,997],{"class":979},".moved) ",[969,999,1000],{"class":986},"return",[969,1002,1003],{"class":979},";\n",[969,1005,1007,1010,1013,1016,1019],{"class":971,"line":1006},3,[969,1008,1009],{"class":993},"  this",[969,1011,1012],{"class":979},".moved ",[969,1014,1015],{"class":986},"=",[969,1017,1018],{"class":993}," true",[969,1020,1003],{"class":979},[969,1022,1024,1026,1029,1031,1034,1037,1040,1043,1047,1050,1053,1055,1058,1061,1064],{"class":971,"line":1023},4,[969,1025,1009],{"class":993},[969,1027,1028],{"class":979},".dataset.section ",[969,1030,1015],{"class":986},[969,1032,1033],{"class":993}," this",[969,1035,1036],{"class":979},".",[969,1038,1039],{"class":975},"closest",[969,1041,1042],{"class":979},"(",[969,1044,1046],{"class":1045},"sYBdl","'.shopify-section'",[969,1048,1049],{"class":979},").id.",[969,1051,1052],{"class":975},"replace",[969,1054,1042],{"class":979},[969,1056,1057],{"class":1045},"'shopify-section-'",[969,1059,1060],{"class":979},", ",[969,1062,1063],{"class":1045},"''",[969,1065,1066],{"class":979},");\n",[969,1068,1070,1073,1076,1078,1080],{"class":971,"line":1069},5,[969,1071,1072],{"class":979},"  document.body.",[969,1074,1075],{"class":975},"appendChild",[969,1077,1042],{"class":979},[969,1079,994],{"class":993},[969,1081,1066],{"class":979},[969,1083,1085],{"class":971,"line":1084},6,[969,1086,1087],{"class":979},"}\n",[669,1089,1090,1091,1094,1095,1097,1098,1100,1101,1103],{},"编辑器以分区容器 ",[684,1092,1093],{},"#shopify-section-\u003Cid>"," 为单位重渲染或删除内容，已经搬到 ",[684,1096,946],{}," 下的弹窗不在容器内，会留在页面上，下一次渲染又会搬来一份。",[684,1099,911],{}," 里按 ",[684,1102,915],{}," 删除，就是为这类“搬家”的元素收尾。",[669,1105,1106,1107,1109,1110,1112],{},"同理，弹窗打开时给 ",[684,1108,919],{}," 加了 ",[684,1111,923],{},"。如果弹窗所在的分区在打开状态下被卸载，关闭逻辑不会再执行，页面就无法滚动，因此卸载时一并移除这个类。",[669,1114,1115,1116,1118,1119,1122,1123,929],{},"除这些情况外，大部分组件不需要专门处理编辑器：订阅写在 ",[684,1117,976],{},"、退订写在 ",[684,1120,1121],{},"disconnectedCallback","，重渲染时会自然地退订旧实例、初始化新实例（见",[678,1124,1126],{"href":1125},"\u002Fzh\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcustom-elements-pubsub","组件组织",[713,1128,1130],{"id":1129},"四滚动动画在编辑器中直接显示","四、滚动动画在编辑器中直接显示",[669,1132,1133,1134,1137,1138,1140,1141,1144,1145,1148,1149,1152,1153,1158,1159,929],{},"滚动显现动画依赖 ",[684,1135,1136],{},"IntersectionObserver","：元素进入视口前是透明的。编辑器重渲染分区时，如果再走一次观察流程，商家刚改完的内容可能要滚动一下才出现。Dawn 在 ",[684,1139,872],{}," 和 ",[684,1142,1143],{},"section:reorder"," 时，给分区内的 ",[684,1146,1147],{},".scroll-trigger"," 加上 ",[684,1150,1151],{},"scroll-trigger--design-mode","，跳过观察器（",[678,1154,1157],{"href":1155,"rel":1156},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fanimations.js#L24-L33",[682],"animations.js#L24-L33","）；CSS 中，这个类把透明度、位移和动画全部重置（",[678,1160,1163],{"href":1161,"rel":1162},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fbase.css#L3295-L3307",[682],"base.css#L3295-L3307",[669,1165,1166,1167,1170,1171,929],{},"公告栏另有一处只在编辑器中输出的样式：隐藏 ",[684,1168,1169],{},"aria-hidden=\"true\""," 的轮播项，注释为 theme editor power preview fix（",[678,1172,1175],{"href":1173,"rel":1174},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fannouncement-bar.liquid#L129-L136",[682],"announcement-bar.liquid#L129-L136",[713,1177,1178],{"id":1178},"读源码时发现的问题",[669,1180,1181],{},"均为静态阅读，未在编辑器中复现：",[865,1183,1184,1211,1224,1235],{},[868,1185,1186,820,1189,1191,1192,707,1197,1202,1203,1206,1207,1210],{},[673,1187,1188],{},"同一个脚本可能执行多次。",[684,1190,755],{}," 由 4 个分区分别输出：商品主分区、精选商品、轮播与公告栏（",[678,1193,1196],{"href":1194,"rel":1195},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fmain-product.liquid#L52-L54",[682],"main-product.liquid#L52-L54",[678,1198,1201],{"href":1199,"rel":1200},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fslideshow.liquid#L260-L262",[682],"slideshow.liquid#L260-L262"," 等）。普通 ",[684,1204,1205],{},"\u003Cscript src>"," 每出现一次就执行一次，所有监听器会按页面上这类分区的数量重复注册。目前的处理函数大多可以重复执行，但同一页面上有多个这类分区时，选中一个轮播区块会触发多次 ",[684,1208,1209],{},"pause()"," 与滚动。",[868,1212,1213,820,1216,1219,1220,1223],{},[673,1214,1215],{},"只重新执行第一个放大脚本。",[684,1217,1218],{},"querySelector('[id^=EnableZoomOnHover]')"," 只取第一个匹配项；商品页与精选商品同时启用悬停放大时，只替换其中一个。不过 ",[684,1221,1222],{},"enableZoomOnHover"," 本身作用于全页图片，实际影响可能不大。",[868,1225,1226,820,1229,1231,1232,1234],{},[673,1227,1228],{},"任何分区加载都会重跑放大脚本。",[684,1230,872],{}," 没有检查是哪个分区，修改页脚也会重新执行 ",[684,1233,888],{},"。",[868,1236,1237,820,1242,1244,1245,707,1248,1251],{},[673,1238,1239,1241],{},[684,1240,911],{}," 不检查元素是否已被移出。",[684,1243,915],{}," 也出现在分区内部的元素上（如 ",[684,1246,1247],{},"product-info",[684,1249,1250],{},"quantity-input","），这些元素本来就会随分区移除，重复删除没有副作用，但说明这个属性同时承担了两种用途。",[713,1253,1254],{"id":1254},"迁移到自己主题时",[1256,1257,1258,1264,1279,1289],"ol",{},[868,1259,1260,1261,1263],{},"编辑器专用脚本只在 ",[684,1262,746],{}," 时输出，并且只在布局里输出一次，不要分散到各个分区。",[868,1265,1266,1267,1270,1271,1274,1275,1278],{},"把元素移出分区之前，记录它的来源分区，并在 ",[684,1268,1269],{},"shopify:section:unload"," 中清理；能用原生 ",[684,1272,1273],{},"\u003Cdialog>"," 的 ",[684,1276,1277],{},"showModal()"," 时，就不需要移动元素。",[868,1280,1281,1282,1284,1285,1288],{},"非自定义元素的初始化逻辑，改写成自定义元素，或者在 ",[684,1283,706],{}," 中只对 ",[684,1286,1287],{},"event.target"," 内的元素重新初始化。",[868,1290,1291],{},"动画、懒加载等依赖视口的行为，在编辑器中直接给出最终状态。",[713,1293,1294],{"id":1294},"建议的验证范围",[669,1296,1297,1298,1300,1301,1304,1305,1307],{},"以下为建议测试场景，本文不提供这些场景的实测结果：在编辑器中依次选中轮播的各个区块，确认预览跳转与自动播放的恢复；打开商品媒体弹窗后切换到另一个分区；删除含弹窗的分区，检查 ",[684,1299,946],{}," 下是否还有残留的 ",[684,1302,1303],{},"modal-dialog","；首页同时放置轮播与公告栏，统计 ",[684,1306,710],{}," 监听器的数量。",[693,1309,1311],{"id":1310},"版本差异v1530-v1600","版本差异：v15.3.0 → v16.0.0",[713,1313,1315],{"id":1314},"v1600公共生命周期的新增依赖","v16.0.0：公共生命周期的新增依赖",[669,1317,1318],{},"theme-editor.js 本身未出现在该篇命中的差异，旧版编辑器事件处理仍是对照入口；新增依赖在布局标准事件、披露脚本、商品包裹和公共组件。global.js 删除 AccountIcon，不能再把它作为 16.0.0 的当前清理案例。",[669,1320,1321,1322,707,1327,707,1332,707,1337,1234],{},"差异涉及的文件：",[678,1323,1326],{"href":1324,"rel":1325},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Fassets\u002Fbase.css",[682],"assets\u002Fbase.css",[678,1328,1331],{"href":1329,"rel":1330},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Fassets\u002Fglobal.js",[682],"assets\u002Fglobal.js",[678,1333,1336],{"href":1334,"rel":1335},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Flayout\u002Ftheme.liquid",[682],"layout\u002Ftheme.liquid",[678,1338,1341],{"href":1339,"rel":1340},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Fsections\u002Fmain-product.liquid",[682],"sections\u002Fmain-product.liquid",[713,1343,1344],{"id":1344},"迁移检查",[669,1346,1347],{},"在编辑器重新加载商品分区时检查视图事件、披露实例与监听清理；本文没有运行真实编辑器，不把静态差异等同重复事件已通过。",[1349,1350,1351],"style",{},"html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .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 .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);}",{"title":965,"searchDepth":983,"depth":983,"links":1353},[1354,1364],{"id":695,"depth":983,"text":696,"children":1355},[1356,1357,1359,1360,1361,1362,1363],{"id":715,"depth":1006,"text":716},{"id":803,"depth":1006,"text":1358},"二、theme-editor.js 处理的事件",{"id":932,"depth":1006,"text":933},{"id":1129,"depth":1006,"text":1130},{"id":1178,"depth":1006,"text":1178},{"id":1254,"depth":1006,"text":1254},{"id":1294,"depth":1006,"text":1294},{"id":1310,"depth":983,"text":1311,"children":1365},[1366,1367],{"id":1314,"depth":1006,"text":1315},{"id":1344,"depth":1006,"text":1344},"dtc",[],"historical","以 Dawn v15.3.0 固定源码讲解怎样适配主题编辑器：设计模式、编辑器事件与重渲染清理，附 v16.0.0 文件差异与迁移检查。",[1373],"storefront-experience","partial","md",[],[110],true,[],{},[],[],[],[350,374,372,381],[1386],"developer",{"title":659,"description":1371},[1324,1329,1334,1339,812,1389,1390,884,1391,1392,1393,1394,1395],"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fanimations.js","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fglobal.js","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Flayout\u002Ftheme.liquid","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fmain-product.liquid","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fslideshow.liquid","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fannouncement-bar.liquid","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fbase.css",[],"published","shopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events",[1400,1401,1402,1403,1404,690],"Dawn","Shopify","源码解析","15.3.0","主题编辑器",[1406,1410],{"theme":1407,"version":1408,"url":1409},"dawn","v16.0.0 · bc39a7d2024f1e5c14c42f855bd3552b4913e204","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Ftree\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204",{"theme":1407,"version":1411,"url":680},"v15.3.0 · ecb06c31f1423fced1b3ea6ef7e1cb2143f04e47",[1413],"shopify","2026-10-23",[],"依据所列固定提交分析源码；版本差异、独立实验和店铺集成验证的范围分别见正文，不将旧版结果直接用于其他版本。","2026-10-15","Z6Pq_-OJjRf2WXjBhgLdqMKapSA6CqDe8vyHFoaHyE8",{"topic":1420,"paths":1423},{"featured":1421,"title":1422,"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],"官方主题解析",[],[1425,1427,1429,1431],{"title":1426,"path":350},"主题管理：主题库、发布、回滚与版本",{"title":1428,"path":374},"Dawn 的组件组织：Custom Elements 加 25 行 pubsub",{"title":1430,"path":372},"Dawn 内容分区与动效：轮播、折叠、横幅与滚动显现",{"title":1432,"path":381},"Dawn 商品媒体：图库、变体联动与放大浏览",{"titles":1434,"toolNames":1436,"domainPaths":1449,"reverse":1450},{"\u002Fcommerce\u002Fstorefront-component-lifecycle":1435},"店面组件生命周期：初始化、更新与清理",{"elevar":1437,"google-ads":1438,"google-analytics":1439,"google-merchant-center":1440,"google-tag-manager":1441,"gorgias":1442,"judge-me":1443,"klaviyo":1444,"meta-ads":1445,"paypal":1446,"shopify":1401,"woocommerce":1447,"wordpress":1448},"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":1451,"measuredBy":1452,"needs":1453,"constrainedBy":1454},[],[],[],[],1792741342812]