Improved logo performance

This commit is contained in:
a-ill 2023-08-17 14:54:31 +03:00
parent b7a36b7cd7
commit db270170fa
10 changed files with 18 additions and 5 deletions

View File

@ -101,7 +101,11 @@
<label id="hamb" for="side-menu"><span id="hamb-line"></span></label> <label id="hamb" for="side-menu"><span id="hamb-line"></span></label>
<!-- Logo --> <!-- Logo -->
<a id=logo-container href={"/" + locale + "/"}> <a id=logo-container href={"/" + locale + "/"}>
<img src="/img/common/flag.png" id="navbar-logo" alt="logo"> <picture>
<source srcset="/img/common/flag.webp">
<source srcset="/img/common/flag.png">
<img id="navbar-logo" alt="logo">
</picture>
<span bind:this={logoText} id="navbar-logo-text" >{@html $content.orgName}</span> <span bind:this={logoText} id="navbar-logo-text" >{@html $content.orgName}</span>
</a> </a>
<!-- Menu --> <!-- Menu -->

View File

@ -7,6 +7,13 @@ server {
add_header alt-svc 'h3=":443"; ma=2592000, h3-23=":443"; ma=86400, h3-29=":443"; ma=2592000'; add_header alt-svc 'h3=":443"; ma=2592000, h3-23=":443"; ma=86400, h3-29=":443"; ma=2592000';
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
gzip on;
gunzip on;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
location ~* \.(?:ico|gif|jpe?g|png|svg|webp)$ { location ~* \.(?:ico|gif|jpe?g|png|svg|webp)$ {
expires 1d; expires 1d;
add_header Pragma public; add_header Pragma public;

View File

@ -60,9 +60,11 @@ body {
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
src: src:
url('/fonts/LoraSerif/Lora-Regular.ttf') format('ttf'), url('/fonts/LoraSerif/Lora-Regular.woff2') format('woff'),
url('/fonts/LoraSerif/Lora-Regular.woff') format('woff'), url('/fonts/LoraSerif/Lora-Regular.woff') format('woff'),
url('/fonts/LoraSerif/Lora-Regular.woff2') format('woff'); url('/fonts/LoraSerif/Lora-Regular.ttf') format('ttf');
} }
.serif { .serif {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

File diff suppressed because one or more lines are too long