Skip to content

Commit ee87597

Browse files
committed
Increased Performance
1 parent 4fa32ef commit ee87597

File tree

9 files changed

+10
-1
lines changed

9 files changed

+10
-1
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4+
<link rel="preload" as="image" href="/assets/Images/teach.webp">
5+
<link rel="preconnect" href="https://avatar.vercel.sh" crossorigin>
46
<meta charset="UTF-8" />
57
<link id="dynamic" rel="icon" type="image/svg+xml" href="favicons/favicon1.svg" />
68
<link href="./src/styles/globals.css" rel="stylesheet">

public/assets/Images/discuss.webp

-255 KB
Loading

public/assets/Images/learn.webp

-2.86 MB
Loading
242 KB
Loading

public/assets/Images/teach.webp

-108 KB
Loading

public/assets/Images/teach1.webp

-98.9 KB
Loading

public/assets/Images/teach2.webp

-749 KB
Loading

src/styles/globals.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@font-face {
22
font-family: 'Caveat';
33
src: url('/fonts/Caveat-Regular.ttf');
4+
font-display: swap;
45
}
56

67
@plugin 'tailwindcss-animate';
@@ -9,22 +10,27 @@
910
@font-face {
1011
font-family: 'Roboto';
1112
src: url('/fonts/Roboto-Regular.ttf');
13+
font-display: swap;
1214
}
1315
@font-face {
1416
font-family: 'Pacifico';
1517
src: url('/fonts/Pacifico-Regular.ttf');
18+
font-display: swap;
1619
}
1720
@font-face {
1821
font-family: 'AnonymousPro';
1922
src: url('/fonts/AnonymousPro-Regular.ttf');
23+
font-display: swap;
2024
}
2125
@font-face {
2226
font-family: 'Inter';
2327
src: url('/fonts/Inter_28pt-Regular.ttf');
28+
font-display: swap;
2429
}
2530
@font-face {
2631
font-family: 'Oswald';
2732
src: url('/fonts/Oswald-Regular.ttf');
33+
font-display: swap;
2834
}
2935

3036
@import 'tailwindcss';

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default defineConfig({
1313
},
1414
},
1515
build: {
16+
target: 'esnext',
1617
rollupOptions: {
1718
/**
1819
* Ignore "use client" warning since we are not using SSR
@@ -42,4 +43,4 @@ export default defineConfig({
4243
},
4344
chunkSizeWarningLimit: 2000,
4445
},
45-
});
46+
});

0 commit comments

Comments
 (0)