Skip to content

Commit 8a6facb

Browse files
committed
preload background images used in main css file
1 parent ac095bf commit 8a6facb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

views/core/_base.html.twig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
{# Theme color (for shortcuts backgrounds) #}
1919
<meta name="theme-color" content="#131313" />
2020

21+
{# Preload assets #}
22+
{# - Images loaded in CSS files require the CSS file to be fully parsed. This preloads those images. #}
23+
<link rel="preload" as="image" href="/img/bg.png" />
24+
<link rel="preload" as="image" href="/img/bg-button-red.png" />
25+
<link rel="preload" as="image" href="/img/bg-button.png" />
26+
<link rel="preload" as="image" href="/img/bg-gray.png" />
27+
<link rel="preload" as="image" href="/img/bg-black.png" />
28+
2129
{# Bootstrap core CSS #}
2230
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
2331

0 commit comments

Comments
 (0)