generated from hjess/PythonTemplateProject
Lets see what lighthouse says
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 37s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 37s
This commit is contained in:
@@ -21,26 +21,50 @@
|
|||||||
|
|
||||||
<!-- Kritisk CSS for at forhindre FOUC -->
|
<!-- Kritisk CSS for at forhindre FOUC -->
|
||||||
<style>
|
<style>
|
||||||
/* Skjul kroppen indtil CSS er klar for at forhindre FOUC */
|
/* Kritisk CSS for hurtig rendering */
|
||||||
body {
|
body {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
font-family: 'Arial', sans-serif;
|
font-family: 'Arial', sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initial preload-klasse */
|
|
||||||
.is-preload #wrapper {
|
.is-preload #wrapper {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.3s ease-in;
|
transition: opacity 0.3s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Kritisk CSS for vigtig styling */
|
header {
|
||||||
body.loaded {
|
background-color: #f8f9fa;
|
||||||
visibility: visible;
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Skrifttyper og CSS -->
|
<!-- Lokalt hosted Fontawesome for at eliminere render-blocking -->
|
||||||
<link rel="stylesheet" href="/static/css/main.min.css?v={{ timestamp }}">
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FontAwesome';
|
||||||
|
src: url('/static/webfonts/fa-solid-900.woff2') format('woff2');
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
.fa {
|
||||||
|
font-family: 'FontAwesome';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- Kritisk skrifttype preload -->
|
||||||
|
<link rel="preload" href="/static/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<!-- Hoved CSS -->
|
||||||
|
<link rel="stylesheet" href="/static/css/main.min.css?v={{ timestamp }}" media="print" onload="this.media='all'">
|
||||||
|
|
||||||
<!-- Fallback for brugere uden JavaScript -->
|
<!-- Fallback for brugere uden JavaScript -->
|
||||||
<noscript>
|
<noscript>
|
||||||
@@ -52,7 +76,7 @@
|
|||||||
// Fjern preload-klasse og vis siden, når alt er indlæst
|
// Fjern preload-klasse og vis siden, når alt er indlæst
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
document.body.classList.remove('is-preload');
|
document.body.classList.remove('is-preload');
|
||||||
document.body.classList.add('loaded');
|
document.body.style.visibility = 'visible';
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user