Commit afbe8fa
Fix FOUC in Pro spec/dummy app with critical CSS
Inline critical CSS styles in the <head> to prevent Flash of
Unstyled Content (FOUC) on initial page load. This ensures the
two-column layout renders correctly before the main CSS loads.
Changes:
- Add inlined critical CSS for flex layout, sidebar dimensions,
colors, spacing, and overflow handling
- Add preload hint for client-bundle.css for faster loading
This matches Tailwind class definitions used in the layout structure
so the page has proper layout even before full CSS loads.
Fixes #2100
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 16b3908 commit afbe8fa
File tree
1 file changed
+29
-0
lines changed- react_on_rails_pro/spec/dummy/app/views/layouts
1 file changed
+29
-0
lines changedLines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
22 | 49 | | |
| 50 | + | |
| 51 | + | |
23 | 52 | | |
24 | 53 | | |
25 | 54 | | |
| |||
0 commit comments