add preloads to big images for optimization
adds just a little more to initial load, afterwards everything is cached so it doesn't matter
This commit is contained in:
parent
7c4a6b030d
commit
e2dcb47901
1 changed files with 14 additions and 0 deletions
|
|
@ -40,6 +40,20 @@
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<link rel="stylesheet" href="/static/styles.css" />
|
<link rel="stylesheet" href="/static/styles.css" />
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
fetchpriority="high"
|
||||||
|
as="image"
|
||||||
|
href="/static/touching-grass-pic.jpg"
|
||||||
|
type="image/jpeg"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
fetchpriority="high"
|
||||||
|
as="image"
|
||||||
|
href="/static/grid.svg"
|
||||||
|
type="image/svg+xml"
|
||||||
|
/>
|
||||||
<script
|
<script
|
||||||
src="https://unpkg.com/htmx.org@1.9.6"
|
src="https://unpkg.com/htmx.org@1.9.6"
|
||||||
integrity="sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni"
|
integrity="sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue