Skip to content

Add preload tags and other performance attributes to front page #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
<head>
<meta charset="UTF-8" />
<title>One HTML Page Challenge</title>
<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?" />
<meta name="robots" content="index, follow" />

<!-- Preload assets -->
<link rel="preload" as="image" href="./meta/one-html-page-logo.png" fetchpriority="high" />
<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" />
<link rel="preload" as="script" href="./entries.js" />
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin>
<link rel="dns-prefetch" href="https://www.google-analytics.com">
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>

<!-- Icons -->

Expand Down Expand Up @@ -69,6 +80,7 @@

.logo {
max-width: 70%;
height: auto;
}

body {
Expand Down Expand Up @@ -104,15 +116,15 @@
<div class="card">
<div class="card-body">
<div class="jumbotron">
<img src="./meta/one-html-page-logo.png" alt="One Html Page Challenge" class="logo" />
<img src="./meta/one-html-page-logo.png" width="2404" height="1582" alt="One Html Page Challenge" fetchpriority="high" class="logo" />
<hr class="my-4" />
<p>
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.
<b>How creative can you be with such restrictions?</b>
</p>
<a class="btn btn-primary btn-lg" href="https://github.com/Metroxe/one-html-page-challenge/blob/master/README.md#how-to-submit" role="button" target="_blank">Submit an Entry</a>
<a class="btn btn-primary btn-lg" href="https://github.com/Metroxe/one-html-page-challenge" role="button" target="_blank">Github</a>

</div>
<div class="input-group flex-nowrap">
<input type="text" class="form-control" placeholder="Search" aria-label="Search" aria-describedby="addon-wrapping" id="search" oninput="searchOnInput()" />
Expand Down