Skip to content

Commit

Permalink
Hosting jQuery locally (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Nov 9, 2024
1 parent 8413b22 commit 7478275
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions include/footer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ if (!empty($_SERVER['BASE_PAGE'])
}
?>

<!-- External and third party libraries. -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<?php
$jsfiles = ["ext/FuzzySearch.min.js", "ext/mousetrap.min.js", "ext/jquery.scrollTo.min.js", "search.js", "common.js"];
$jsfiles = ["ext/jquery-3.6.0.min.js", "ext/FuzzySearch.min.js", "ext/mousetrap.min.js", "ext/jquery.scrollTo.min.js", "search.js", "common.js"];
foreach ($jsfiles as $filename) {
$path = dirname(__DIR__) . '/js/' . $filename;
echo '<script src="/cached.php?t=' . @filemtime($path) . '&amp;f=/js/' . $filename . '"></script>' . "\n";
Expand Down
2 changes: 2 additions & 0 deletions js/ext/jquery-3.6.0.min.js

Large diffs are not rendered by default.

0 comments on commit 7478275

Please sign in to comment.