perf(storefront): optimize LCP image delivery, lazy-load scripts, improve WCAG contrast and accessibility
This commit is contained in:
1 parent
b766b01713
commit
98e20269a3
8 files changed
+77
-57
No files matched your search
@@ -103,8 +103,8 @@ export default function SafeImage({
|
||||
quality={quality}
|
||||
unoptimized={
|
||||
isBlobOrData ||
|
||||
!isAllowedHost ||
|
||||
(typeof src === 'string' && (src.startsWith('/api/uploads/') || src.startsWith('/api/media/') || src.startsWith('/uploads/')))
|
||||
!isAllowedHost ||
|
||||
(typeof src === 'string' && src.toLowerCase().endsWith('.svg'))
|
||||
}
|
||||
className={cn(
|
||||
"transition-all duration-500 w-full h-full object-contain",
|
||||
|
||||
Reference in new issue
Block a user