Skip to content

Commit 09b6cc7

Browse files
committed
feat: enhance performance and SEO with preload and structured data in index.html
1 parent 92b695c commit 09b6cc7

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

index.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,19 @@
2323
<meta name="twitter:image" content="https://devshafi.github.io/assets/shafi_image.jpg">
2424
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
2525

26+
<link rel="preload" as="image" href="assets/shafi_image.jpg">
2627
<link rel="preconnect" href="https://fonts.googleapis.com">
2728
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2829
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Sora:wght@400;600;700&display=swap" rel="stylesheet">
2930
<link rel="stylesheet" href="styles.css">
31+
<script type="application/ld+json">
32+
{
33+
"@context": "https://schema.org",
34+
"@type": "WebSite",
35+
"name": "Fozle Rabbi Shafi Portfolio",
36+
"url": "https://devshafi.github.io/"
37+
}
38+
</script>
3039
<script type="application/ld+json">
3140
{
3241
"@context": "https://schema.org",
@@ -136,7 +145,7 @@ <h1>Fozle Rabbi Shafi</h1>
136145
</div>
137146
</div>
138147
<figure class="hero-photo-wrap">
139-
<img class="hero-photo" src="assets/shafi_image.jpg" alt="Portrait of Fozle Rabbi Shafi">
148+
<img class="hero-photo" src="assets/shafi_image.jpg" alt="Portrait of Fozle Rabbi Shafi" loading="lazy" decoding="async">
140149
</figure>
141150
</div>
142151
</section>
@@ -407,6 +416,6 @@ <h2>Contact</h2>
407416
<p>© <span id="year"></span> Fozle Rabbi Shafi</p>
408417
</footer>
409418

410-
<script src="script.js?v=20260401-1"></script>
419+
<script src="script.js?v=20260401-1" defer></script>
411420
</body>
412421
</html>

0 commit comments

Comments
 (0)