-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_app.tsx
More file actions
40 lines (35 loc) · 1.65 KB
/
Copy path_app.tsx
File metadata and controls
40 lines (35 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import '../styles/globals.css';
import type { AppProps } from 'next/app';
import Head from 'next/head';
import React from 'react';
// Add performance optimization with React.memo for the App component
function App({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<title>Spectro - AI Assistant for Technical Interviews</title>
<meta name="description" content="Ace your technical interviews with our AI-powered solution that stays invisible while giving you real-time assistance." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
{/* Preload critical fonts for better performance */}
<link
rel="preload"
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
as="style"
/>
<link
rel="preload"
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap"
as="style"
/>
{/* Preconnect to improve loading performance */}
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
{/* Add priority hints for CSS */}
<meta httpEquiv="x-dns-prefetch-control" content="on" />
</Head>
<Component {...pageProps} />
</>
);
}
export default React.memo(App);