mirror of
https://github.com/langgenius/dify.git
synced 2026-06-07 16:23:44 +08:00
fix(web): defer react-scan loader (#36920)
This commit is contained in:
parent
5c1cfe6ada
commit
f465dc5090
@ -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"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user