Repository navigation
Commit 05d621c
committed
perf(solid): check for a document after defining the truncation sweep
With the guard after the `sweep` closure, the minifier folds it into the
dispatch (`typeof document<"u"&&(...)`) instead of an early
`if(...)return;`: 7 B less minified in every hydrating scenario. This PR's
growth drops from +25 B to +18 B minified, back inside the size gate's
20 B allowance on the three page scenarios that went over it.1 parent a18099f commit 05d621c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2659 | 2659 | | |
2660 | 2660 | | |
2661 | 2661 | | |
2662 | | - | |
2663 | 2662 | | |
2664 | 2663 | | |
2665 | 2664 | | |
| |||
2682 | 2681 | | |
2683 | 2682 | | |
2684 | 2683 | | |
| 2684 | + | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | 2687 | | |
| |||
0 commit comments