Skip to content

Commit 9a6e030

Browse files
committed
Revert "optimisations"
This reverts commit 60d2825.
1 parent 60d2825 commit 9a6e030

File tree

2 files changed

+2
-275
lines changed

2 files changed

+2
-275
lines changed

assets/scss/critical.scss

Lines changed: 0 additions & 260 deletions
This file was deleted.

layouts/_default/baseof.html

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,13 @@
1818
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Overpass+Mono:[email protected]&display=swap">
1919
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap">
2020

21-
<!-- Critical CSS - Inlined for instant rendering -->
22-
{{ $critical_css_options := dict "targetPath" "css/critical.css" }}
23-
{{ $critical := resources.Get "scss/critical.scss" | toCSS $critical_css_options }}
24-
{{ if hugo.IsProduction }}
25-
{{ $critical = $critical | minify }}
26-
{{ end }}
27-
<style>{{ $critical.Content | safeCSS }}</style>
28-
29-
<!-- Full CSS - Deferred for non-blocking load -->
21+
<!-- CSS-->
3022
{{ $css_options := dict "targetPath" "css/style.css" "enableSourceMap" (not hugo.IsProduction) }}
3123
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS $css_options }}
3224
{{ if hugo.IsProduction }}
3325
{{ $style = $style | minify | fingerprint }}
3426
{{ end }}
35-
<link rel="preload" href="{{ $style.RelPermalink }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
36-
<noscript><link rel="stylesheet" href="{{ $style.RelPermalink }}"></noscript>
37-
<script>
38-
// Fallback for browsers that don't support rel="preload"
39-
!function(e){"use strict";var n=function(n,t,o){var i,r=e.document,a=r.createElement("link");if(t)i=t;else{var l=(r.body||r.getElementsByTagName("head")[0]).childNodes;i=l[l.length-1]}var d=r.styleSheets;a.rel="stylesheet",a.href=n,a.media="only x",function e(n){if(r.body)return n();setTimeout(function(){e(n)})}(function(){i.parentNode.insertBefore(a,t?i:i.nextSibling)});var f=function(e){for(var n=a.href,t=d.length;t--;)if(d[t].href===n)return e();setTimeout(function(){f(e)})};return a.addEventListener&&a.addEventListener("load",o),a.onloadcssdefined=f,f(o),a};"undefined"!=typeof exports?exports.loadCSS=n:e.loadCSS=n}("undefined"!=typeof global?global:this);
40-
</script>
27+
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
4128

4229
<!-- Swiper CSS -->
4330
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" media="print" onload="this.media='all'">

0 commit comments

Comments
 (0)