Lib: Implement (slightly broken) lazy loading of cards

Issues arise when the viewport size changes
This commit is contained in:
2024-12-16 19:52:46 +01:00
parent 060575ed12
commit fdf08d7b86
6 changed files with 61 additions and 5 deletions

View File

@ -43,6 +43,7 @@
</script>
<LazyCard
group="DriverCard"
imgsrc={driver?.headshot_url ?? headshot_template}
imgwidth={DRIVER_HEADSHOT_WIDTH}
imgheight={DRIVER_HEADSHOT_HEIGHT}