perf: target modern browsers and preconnect to the image CDN
Add a browserslist targeting evergreen browsers so autoprefixer skips unnecessary vendor prefixes, and preconnect/dns-prefetch to image.tmdb.org since poster/backdrop images are the LCP element on most pages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
dec6560cf0
commit
127a02f4e1
2 files changed
+3
No files matched your search
@@ -27,6 +27,8 @@ const RootLayout = ({ children }: { children: ReactNode }) => {
|
||||
return (
|
||||
<html lang='en' suppressHydrationWarning>
|
||||
<head>
|
||||
<link rel='preconnect' href='https://image.tmdb.org' crossOrigin='anonymous' />
|
||||
<link rel='dns-prefetch' href='https://image.tmdb.org' />
|
||||
<ThemeColor />
|
||||
<link
|
||||
rel='icon'
|
||||
|
||||
Reference in new issue
Block a user