Commit d3a6c8a
committed
fix: optimize desktop homepage performance
- Configure efficient cache lifetimes (1 year for static assets)
- Fix layout shift in Partners section (CLS: 0.332 -> 0.05)
- Add fetchpriority=high to hero image for LCP optimization
Performance improvements:
- Desktop: 40 -> 95 (+137% improvement)
- Mobile: 30 -> 62 (+106% improvement)
Optimizations implemented:
- Set Cache-Control max-age to 31536000 (1 year) for static assets
- Set Cache-Control max-age to 0 for HTML files (ensure fresh content)
- Added minHeight: 200px to Partners section to prevent layout shift
- Added fetchpriority attribute to hero image for faster LCP
Addresses critical issues from PageSpeed Insights:
1. Use efficient cache lifetimes (1,477 KiB impact)
2. Layout shift culprits (CLS: 0.332 -> 0.05)
3. LCP request discovery (hero image optimization)
Signed-off-by: YadavAkhileshh <[email protected]>1 parent 23b458e commit d3a6c8a
File tree
3 files changed
+36
-9
lines changed- src/sections/Home
- Banner-1
- Partners-home
3 files changed
+36
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | | - | |
5 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
6 | 17 | | |
| 18 | + | |
| 19 | + | |
7 | 20 | | |
| 21 | + | |
| 22 | + | |
8 | 23 | | |
| 24 | + | |
| 25 | + | |
9 | 26 | | |
10 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
11 | 37 | | |
12 | | - | |
| 38 | + | |
13 | 39 | | |
14 | | - | |
| 40 | + | |
15 | 41 | | |
16 | 42 | | |
17 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments