perf: remove legacy JS polyfills by targeting modern browserslist and fix LCP penalty by rendering hero background immediately visible instead of opacity 0
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 34s
Build & Deploy / 🧪 QA (push) Successful in 1m34s
Build & Deploy / 🏗️ Build (push) Successful in 2m58s
Build & Deploy / 🚀 Deploy (push) Successful in 31s
Build & Deploy / 🔔 Notify (push) Successful in 4s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m5s

This commit is contained in:
2026-06-24 13:49:03 +02:00
parent 04a2bb0ebc
commit 4fd7160967
2 changed files with 7 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ export const HeroSection: React.FC<HeroSectionProps> = (props) => {
<m.div <m.div
key={`hero-bg-${pathname}`} key={`hero-bg-${pathname}`}
className="absolute inset-0 z-0" className="absolute inset-0 z-0"
initial={{ scale: 1.05, opacity: 0 }} initial={{ scale: 1.05, opacity: 1 }}
animate={{ scale: 1, opacity: 1 }} animate={{ scale: 1, opacity: 1 }}
transition={{ duration: 1.5, ease: "easeOut" }} transition={{ duration: 1.5, ease: "easeOut" }}
> >

View File

@@ -138,7 +138,7 @@
"prepare": "husky", "prepare": "husky",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"version": "2.2.48", "version": "2.2.49",
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"@parcel/watcher", "@parcel/watcher",
@@ -153,9 +153,11 @@
} }
}, },
"browserslist": [ "browserslist": [
"last 3 versions", "last 2 chrome versions",
"not dead", "last 2 firefox versions",
"not ie 11" "last 2 edge versions",
"safari >= 15.4",
"not dead"
], ],
"peerDependencies": { "peerDependencies": {
"lucide-react": "^0.563.0" "lucide-react": "^0.563.0"