Commit 82c9851
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 <yadavakhil2501@gmail.com>1 parent 23b458e commit 82c9851
File tree
3 files changed
+8
-7
lines changed- src/sections/Home
- Banner-1
- Partners-home
3 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 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