Merge pull request #2754 from EricGusmao/remove-jquery

Remove jQuery dependency and update theme version to 2.97.0
This commit is contained in:
Nuno C.
2026-02-11 21:28:13 +00:00
committed by GitHub
5 changed files with 1 additions and 21 deletions
+1 -2
View File
@@ -27,7 +27,7 @@ function _getPackeryOptions(nodeGallery) {
}
(function init() {
$(window).on("load", function () {
window.addEventListener("load", function () {
let packeries = [];
let nodeGalleries = document.querySelectorAll(".gallery");
@@ -35,6 +35,5 @@ function _getPackeryOptions(nodeGallery) {
let packery = new Packery(nodeGallery, _getPackeryOptions(nodeGallery));
packeries.push(packery);
});
console.groupEnd();
});
})();
File diff suppressed because one or more lines are too long
-4
View File
@@ -1,7 +1,3 @@
{{/* jQuery */}}
{{ $jqueryLib := resources.Get "lib/jquery/jquery.slim.min.js" | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
<script src="{{ $jqueryLib.RelPermalink }}" integrity="{{ $jqueryLib.Data.Integrity }}"></script>
{{/* Mermaid */}}
{{ if .Page.HasShortcode "mermaid" }}
{{ $mermaidLib := resources.Get "lib/mermaid/mermaid.min.js" }}
-8
View File
@@ -22,7 +22,6 @@
"@tailwindcss/typography": "^0.5.19",
"chart.js": "^4.5.1",
"fuse.js": "^7.1.0",
"jquery": "^4.0.0",
"katex": "^0.16.28",
"lite-youtube-embed": "^0.3.4",
"medium-zoom": "^1.1.0",
@@ -3002,13 +3001,6 @@
"jiti": "lib/jiti-cli.mjs"
}
},
"node_modules/jquery": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-4.0.0.tgz",
"integrity": "sha512-TXCHVR3Lb6TZdtw1l3RTLf8RBWVGexdxL6AC8/e0xZKEpBflBsjh9/8LXw+dkNFuOyW9B7iB3O1sP7hS0Kiacg==",
"dev": true,
"license": "MIT"
},
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
-5
View File
@@ -41,7 +41,6 @@
"@tailwindcss/typography": "^0.5.19",
"chart.js": "^4.5.1",
"fuse.js": "^7.1.0",
"jquery": "^4.0.0",
"katex": "^0.16.28",
"lite-youtube-embed": "^0.3.4",
"medium-zoom": "^1.1.0",
@@ -91,10 +90,6 @@
"from": "node_modules/typeit/dist/index.umd.js",
"to": "assets/lib/typeit/typeit.umd.js"
},
{
"from": "node_modules/jquery/dist/jquery.slim.min.js",
"to": "assets/lib/jquery/jquery.slim.min.js"
},
{
"from": "node_modules/packery/dist/packery.pkgd.min.js",
"to": "assets/lib/packery/packery.pkgd.min.js"