Created
March 28, 2026 08:10
-
-
Save Kcko/e47c7bd6bc4c3ddc55f7f0420581f967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| https://medium.com/@TusharKanjariya/four-lines-in-head-changed-my-site-speed-449bfeb396a2 | |
| --> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>My App</title> | |
| <!-- Step 1: Warm up third-party connections first --> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link rel="dns-prefetch" href="https://analytics.myapp.com"> | |
| <!-- Step 2: Preload critical current-page assets --> | |
| <link rel="preload" href="/fonts/inter.woff2" as="font" type="font/woff2" crossorigin> | |
| <link rel="preload" href="/images/hero.webp" as="image"> | |
| <!-- Step 3: Load stylesheets --> | |
| <link rel="stylesheet" href="/styles/main.css"> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet"> | |
| <!-- Step 4: Prefetch likely next pages (background, no urgency) --> | |
| <link rel="prefetch" href="/dashboard/bundle.js"> | |
| </head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment