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": { "extensions": {
"recommendations": [ "recommendations": [
"charliermarsh.ruff",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"ms-edgedevtools.vscode-edge-devtools", "ms-edgedevtools.vscode-edge-devtools",
"ms-python.black-formatter", "ms-python.black-formatter",
"ms-python.debugpy", "ms-python.debugpy",
"ms-python.pylint",
"ms-python.python", "ms-python.python",
"ms-python.vscode-pylance", "ms-python.vscode-pylance",
"samuelcolvin.jinjahtml", "samuelcolvin.jinjahtml",

View File

@@ -17,6 +17,10 @@
{%- if theme %} {%- if theme %}
<link rel="stylesheet" href="{{ theme }}"> <link rel="stylesheet" href="{{ theme }}">
{%- endif %} {%- 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 %} {%- if images %}
<link rel="stylesheet" href="{{ root }}.static/pswp/photoswipe.css"> <link rel="stylesheet" href="{{ root }}.static/pswp/photoswipe.css">
<link rel="stylesheet" href="{{ root }}.static/pswp/default-skin/default-skin.css"> <link rel="stylesheet" href="{{ root }}.static/pswp/default-skin/default-skin.css">
@@ -26,10 +30,6 @@
</head> </head>
<body> <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"> <div class="header">
<ul class="navbar"> <ul class="navbar">
<li><a href="{{ root }}">Home</a></li> <li><a href="{{ root }}">Home</a></li>