updated javascript preloading

This commit is contained in:
2024-11-22 07:38:48 +01:00
committed by Flo Greistorfer
parent 03a9e46baa
commit b601b67b6e
3 changed files with 6 additions and 6 deletions

View File

@@ -1 +1 @@
2.4.1
2.4.2

View File

@@ -1,11 +1,11 @@
{
"extensions": {
"recommendations": [
"charliermarsh.ruff",
"esbenp.prettier-vscode",
"ms-edgedevtools.vscode-edge-devtools",
"ms-python.black-formatter",
"ms-python.debugpy",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"samuelcolvin.jinjahtml",

View File

@@ -17,6 +17,10 @@
{%- if theme %}
<link rel="stylesheet" href="{{ theme }}">
{%- endif %}
<link rel="preload" href="{{ root }}.static/pswp/photoswipe.css" as="style">
<link rel="preload" href="{{ root }}.static/pswp/default-skin/default-skin.css" as="style">
<link rel="modulepreload" href="{{ root }}.static/pswp/photoswipe.min.js">
<link rel="modulepreload" href="{{ root }}.static/pswp/photoswipe-ui-default.min.js">
{%- if images %}
<link rel="stylesheet" href="{{ root }}.static/pswp/photoswipe.css">
<link rel="stylesheet" href="{{ root }}.static/pswp/default-skin/default-skin.css">
@@ -26,10 +30,6 @@
</head>
<body>
<link rel="preload" href="{{ root }}.static/pswp/photoswipe.css" as="style">
<link rel="preload" href="{{ root }}.static/pswp/default-skin/default-skin.css" as="style">
<link rel="preload" href="{{ root }}.static/pswp/photoswipe.min.js" as="script">
<link rel="preload" href="{{ root }}.static/pswp/photoswipe-ui-default.min.js" as="script">
<div class="header">
<ul class="navbar">
<li><a href="{{ root }}">Home</a></li>