Skip to content

Commit dd49866

Browse files
authored
Merge pull request #140 from lejtzen/performance-optimizations
Add preload tags and other performance attributes to front page
2 parents f014b56 + 36f0f96 commit dd49866

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<title>One HTML Page Challenge</title>
7+
<meta name="description" content="Create anything you want within 1 single HTML file. Practice your skills with the barebones of web development. How creative can you be with such restrictions?" />
8+
<meta name="robots" content="index, follow" />
9+
10+
<!-- Preload assets -->
11+
<link rel="preload" as="image" href="./one-html-page-logo.png" fetchpriority="high" />
12+
<link rel="preload" as="style" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" fetchpriority="high" />
13+
<link rel="preload" as="script" href="./entries.js" />
14+
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
15+
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin>
16+
<link rel="dns-prefetch" href="https://www.google-analytics.com">
17+
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
718

819
<!-- Favicon -->
920
<link rel="icon" href="./favicon.ico" />
@@ -33,6 +44,7 @@
3344

3445
.logo {
3546
max-width: 70%;
47+
height: auto;
3648
}
3749

3850
body {
@@ -66,7 +78,7 @@
6678
<div class="card">
6779
<div class="card-body">
6880
<div class="jumbotron">
69-
<img src="./one-html-page-logo.png" alt="One Html Page Challenge" class="logo" />
81+
<img src="./one-html-page-logo.png" width="2404" height="1582" alt="One Html Page Challenge" fetchpriority="high" class="logo" />
7082
<hr class="my-4" />
7183
<p>
7284
The goal is to create anything you want within 1 single html file. Practice your skills with no assistance from libraries, no separation of files, and no assistance of a modern framework.

0 commit comments

Comments
 (0)