Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b6f1d9405 | |||
| 6cc9ccdea8 | |||
| aafc705f0e | |||
| 691f02a5b8 | |||
| 4b04178f01 | |||
| f76940dc34 | |||
| 2653bd2569 |
@@ -12,7 +12,7 @@ NODE_ENV=production
|
||||
NEXT_PUBLIC_BASE_URL=https://e-tib.com
|
||||
|
||||
# Analytics (Umami)
|
||||
UMAMI_WEBSITE_ID=
|
||||
UMAMI_WEBSITE_ID=d773ea10-a3b3-4ccf-9024-987e14c4d669
|
||||
UMAMI_API_ENDPOINT=https://analytics.infra.mintel.me
|
||||
|
||||
# Error Tracking (GlitchTip/Sentry)
|
||||
|
||||
2895
.lighthouseci/lhr-1782063683063.html
Normal file
2895
.lighthouseci/lhr-1782063683063.html
Normal file
File diff suppressed because one or more lines are too long
13346
.lighthouseci/lhr-1782063683063.json
Normal file
13346
.lighthouseci/lhr-1782063683063.json
Normal file
File diff suppressed because one or more lines are too long
2895
.lighthouseci/lhr-1782063711742.html
Normal file
2895
.lighthouseci/lhr-1782063711742.html
Normal file
File diff suppressed because one or more lines are too long
13179
.lighthouseci/lhr-1782063711742.json
Normal file
13179
.lighthouseci/lhr-1782063711742.json
Normal file
File diff suppressed because one or more lines are too long
2895
.lighthouseci/lhr-1782063741217.html
Normal file
2895
.lighthouseci/lhr-1782063741217.html
Normal file
File diff suppressed because one or more lines are too long
13289
.lighthouseci/lhr-1782063741217.json
Normal file
13289
.lighthouseci/lhr-1782063741217.json
Normal file
File diff suppressed because one or more lines are too long
3
.lighthouseci/links.json
Normal file
3
.lighthouseci/links.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"https://e-tib.com/en": "https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1782063743188-8000.report.html"
|
||||
}
|
||||
@@ -43,11 +43,29 @@ export function HeroVideo(props: HeroVideoProps) {
|
||||
|
||||
const [videoSrcLoaded, setVideoSrcLoaded] = useState(false);
|
||||
useEffect(() => {
|
||||
// Delay loading the video until after the page has visually painted the LCP image
|
||||
const timer = setTimeout(() => {
|
||||
let interactionTriggered = false;
|
||||
|
||||
const handleInteraction = () => {
|
||||
if (interactionTriggered) return;
|
||||
interactionTriggered = true;
|
||||
setVideoSrcLoaded(true);
|
||||
}, 500);
|
||||
return () => clearTimeout(timer);
|
||||
|
||||
// Cleanup listeners
|
||||
['scroll', 'mousemove', 'touchstart', 'keydown'].forEach((event) =>
|
||||
window.removeEventListener(event, handleInteraction)
|
||||
);
|
||||
};
|
||||
|
||||
// Listen for any user interaction
|
||||
['scroll', 'mousemove', 'touchstart', 'keydown'].forEach((event) =>
|
||||
window.addEventListener(event, handleInteraction, { passive: true, once: true })
|
||||
);
|
||||
|
||||
return () => {
|
||||
['scroll', 'mousemove', 'touchstart', 'keydown'].forEach((event) =>
|
||||
window.removeEventListener(event, handleInteraction)
|
||||
);
|
||||
};
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
"prepare": "husky",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
"version": "2.2.23",
|
||||
"version": "2.2.29",
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@parcel/watcher",
|
||||
|
||||
Reference in New Issue
Block a user