Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(frontend): allow lazy loading of images (#10895)

Abhimanyu Yadav34fbf4377f9d
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx
index b6419750ad..70b6de1e16 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx
@@ -51,7 +51,6 @@ export default function LibraryAgentCard({
alt={`${name} preview image`}
fill
className="object-cover"
- priority
/>
)}
<div className="absolute bottom-4 left-4">
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorCard/CreatorCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorCard/CreatorCard.tsx
index 88912f17cb..aa21125597 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorCard/CreatorCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorCard/CreatorCard.tsx
@@ -33,7 +33,6 @@ export const CreatorCard = ({
width={64}
height={64}
className="h-full w-full object-cover"
- priority
/>
) : (
<div className="h-full w-full bg-neutral-300 dark:bg-neutral-600" />
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx
index 6b515f01bd..d5b513f291 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx
@@ -51,7 +51,6 @@ export const StoreCard: React.FC<StoreCardProps> = ({
alt={`${agentName} preview image`}
fill
className="object-cover"
- priority
/>
)}
{!hideAvatar && (