diff options
| author | Eltrac <hi@guhub.cn> | 2025-05-17 09:26:26 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-05-17 09:26:26 +0800 |
| commit | b02d0dcdfbf4e8be37148b758bdd366b73785362 (patch) | |
| tree | 6b37a433c1653a952d20a31698a84d1a02168977 /layouts/partials/scripts.html | |
| parent | 36ae927f68021f9cae06bcabcd83bfe16aeb0059 (diff) | |
perf: remove lazyloading script and fully rely on the native solution
Former-commit-id: 9f2fcea1edc5ce78bc0cfe1523c87838bd658be4
Diffstat (limited to 'layouts/partials/scripts.html')
| -rw-r--r-- | layouts/partials/scripts.html | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index e7f1c454..308038ff 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -3,11 +3,6 @@ <script src="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"></script> {{- end }} -{{- $lazyload := resources.Get "js/lazyload.js" | minify }} -{{- if $lazyload }} - <script>{{ $lazyload.Content | safeJS }}</script> -{{- end }} - {{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }} <script src="/js/fancybox.umd.js"></script> <script>Fancybox.bind("[data-fancybox]");</script> |
