fix(web): defer react-scan loader (#36920)

This commit is contained in:
yyh 2026-06-02 11:34:55 +08:00 committed by GitHub
parent 5c1cfe6ada
commit f465dc5090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,9 @@ export function ReactScanLoader() {
<Script
src="//unpkg.com/react-scan/dist/auto.global.js"
crossOrigin="anonymous"
strategy="beforeInteractive"
// React Scan recommends beforeInteractive to catch initial renders, but it
// can mismatch with Dify's inline attribution bootstrap during dev hydration.
strategy="afterInteractive"
/>
)
}