Inline slider critical CSS and shrink portrait assets
Deploy to Development and Production / deploy (push) Successful in 5s Details

This commit is contained in:
Mark Poljanšek 2025-11-03 15:43:02 +01:00
parent 0c8895cf1d
commit 1b2e5ed788
3 changed files with 7 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -16,6 +16,13 @@
<!-- Kritični in razdeljeni CSS -->
<style>
body { background-color: #fdfdfd; }
.slider { margin: 2rem auto; padding: 2rem; max-width: 1200px; }
.slide { display: none; }
.slide.active { display: block; }
.slide-content { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 769px) {
.slide-content { flex-direction: row; align-items: center; }
}
</style>
<link as="style" href="/assets/css/style-home.min.css" onload="this.onload=null;this.rel='stylesheet'" rel="preload"/>
<noscript>