From a2379b2f793a8846d810d74207bd696354606dd1 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Tue, 14 Oct 2025 07:55:51 +0000 Subject: [PATCH] Improve media loading performance for posts by enabling lazy loading Added 'loading="lazy"' attribute to media elements in the new-post page to optimize image and video loading. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/F3F3s9V --- client/src/pages/new-post.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/pages/new-post.tsx b/client/src/pages/new-post.tsx index 7079086..37b1a31 100644 --- a/client/src/pages/new-post.tsx +++ b/client/src/pages/new-post.tsx @@ -78,6 +78,7 @@ function SortableMediaItem({ src={media.facebookFeedUrl || media.originalUrl} alt={media.fileName} className="w-full h-full object-cover" + loading="lazy" /> {isSelected && ( @@ -513,6 +514,7 @@ export default function NewPost() { src={media.facebookFeedUrl || media.originalUrl} alt={media.fileName} className="w-full h-full object-cover" + loading="lazy" /> {isSelected && (