LCP
#438
Replies: 2 comments
-
Hello, new Splide(slider, {
breakpoints: {
576: {
heightRatio: 1.2,
},
768: {
heightRatio: 0.8,
},
1000: {
heightRatio: 0.6,
},
},
cover: true,
heightRatio: 0.3125,
...
}); To fix that, I've added the .splide,
.splide__track {
aspect-ratio: 5 / 6;
}
@media (min-width: 576px) {
.splide,
.splide__track {
aspect-ratio: 10 / 8;
}
}
@media (min-width: 768px) {
.splide,
.splide__track {
aspect-ratio: 10 / 6;
}
}
@media (min-width: 1000px) {
.splide,
.splide__track {
aspect-ratio: 16 / 5;
}
} This may help you, but on my own I'm still stuck with LCP because of the fade-in transition ... |
Beta Was this translation helpful? Give feedback.
0 replies
-
it would be great if we have build in solution, banners become LCP most of the time |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a problem with LCP optimization. Splide is hidden during loading page and it's width and height is loaded late.
Is there some way to have exact size of area with Splide immediately?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions