Repository navigation
Commit 92d6a5b
committed
fix(ssr): cross-guard preload/preloadModule against both script and module executables
The client-side preload suppression was updated to treat classic Float scripts
and preinitModule as one executable set via resourceState().scripts, but the
SSR preload paths were not updated symmetrically:
- preload(as:'script') only checked 'script:' keys, missing 'module:' from preinitModule
- preloadModule only checked 'module:' keys, missing 'script:' from Float scripts
This caused SSR to emit redundant preload tags that the hydrating client
would suppress, creating a client/server Float hint asymmetry.
Add the missing cross-guards so both SSR preload paths mirror the client's
unified executable identity.1 parent cae7135 commit 92d6a5b
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8094 | 8094 | | |
8095 | 8095 | | |
8096 | 8096 | | |
8097 | | - | |
| 8097 | + | |
| 8098 | + | |
8098 | 8099 | | |
8099 | 8100 | | |
8100 | 8101 | | |
| |||
8306 | 8307 | | |
8307 | 8308 | | |
8308 | 8309 | | |
8309 | | - | |
8310 | | - | |
| 8310 | + | |
| 8311 | + | |
| 8312 | + | |
8311 | 8313 | | |
8312 | 8314 | | |
8313 | 8315 | | |
| |||
0 commit comments