Skip to content

Commit

Permalink
⚡️ perf: improve LCP by add image priority (lobehub#1580)
Browse files Browse the repository at this point in the history
* ⚡️ perf: try to improve LCP

* perf: try to improve LCP
  • Loading branch information
arvinxx authored Mar 15, 2024
1 parent 49f147a commit 8abccca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/chat/features/TopicListContent/Topic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export const Topic = memo(() => {
cover={imageUrl(`empty_topic_${isDarkMode ? 'dark' : 'light'}.webp`)}
desc={t('topic.guide.desc')}
height={120}
imageProps={{
priority: true,
}}
onVisibleChange={(visible) => {
updateGuideState({ topic: visible });
}}
Expand Down

0 comments on commit 8abccca

Please sign in to comment.