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 (
|
return (
|
||||||
<html lang='en' suppressHydrationWarning>
|
<html lang='en' suppressHydrationWarning>
|
||||||
<head>
|
<head>
|
||||||
|
<link rel='preconnect' href='https://image.tmdb.org' crossOrigin='anonymous' />
|
||||||
|
<link rel='dns-prefetch' href='https://image.tmdb.org' />
|
||||||
<ThemeColor />
|
<ThemeColor />
|
||||||
<link
|
<link
|
||||||
rel='icon'
|
rel='icon'
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": "22.x"
|
"node": "22.x"
|
||||||
},
|
},
|
||||||
|
"browserslist": ["chrome >= 91", "edge >= 91", "firefox >= 90", "safari >= 15"],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
"@dnd-kit/sortable": "^10.0.0",
|
"@dnd-kit/sortable": "^10.0.0",
|
||||||
|
|||||||
Reference in new issue
Block a user