chore: add lazy loading to FloatingImage

This commit is contained in:
Stefan Imhoff
2023-05-18 15:10:39 +02:00
parent e5575073a4
commit 28f5190550

View File

@@ -23,6 +23,8 @@ export const FloatingImage: FunctionalComponent<Props> = ({
<img
alt={alt}
class="block h-auto w-full rounded-1 border-1 border-solid border-black/[0.1] bg-black/[0.1] shadow shadow-black/10 dark:border-white/[0.1] dark:opacity-[0.87] dark:shadow-white/10"
decoding="async"
loading="lazy"
src={src}
{...props}
/>