summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2021-01-22 17:43:57 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:26:32 +0100
commit21c457817fe8ec5db60a10e2270f9fcf951aca5f (patch)
treed4251296c69feef4a408f2281f502ff3c9fb98f8 /web
parent933d2705f935011035ee661e4a7acac37cd7aca3 (diff)
downloadaur-21c457817fe8ec5db60a10e2270f9fcf951aca5f.tar.gz
aur-21c457817fe8ec5db60a10e2270f9fcf951aca5f.tar.xz
Use jsDelivr instead of Google CDN for jquery
jsdelivr is another free CDN service for open source projects. The main motivation for this change is that it is the only one that works fairly well across the globe. The Google CDN service is known to be hardly accessible in mainland China, unfortunately. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/html/home.php2
-rw-r--r--web/html/packages.php2
-rw-r--r--web/html/pkgmerge.php2
-rw-r--r--web/template/pkgreq_form.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/web/html/home.php b/web/html/home.php
index 0ce89f40..8fb05246 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -202,7 +202,7 @@ if (isset($_COOKIE["AURSID"])) {
<?php endif; ?>
</div>
-<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/jquery@1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-typeahead.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
diff --git a/web/html/packages.php b/web/html/packages.php
index db9606d9..a989428e 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -46,7 +46,7 @@ if (isset($pkgname)) {
html_header($title, $details);
?>
-<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/jquery@1.9.1/jquery.min.js"></script>
<script type="text/javascript">
function collapseDependsList(list) {
list = $(list);
diff --git a/web/html/pkgmerge.php b/web/html/pkgmerge.php
index 6ee7423d..d583c239 100644
--- a/web/html/pkgmerge.php
+++ b/web/html/pkgmerge.php
@@ -33,7 +33,7 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?>
<?php if (isset($_GET['via'])): ?>
<input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" />
<?php endif; ?>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/jquery@1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-typeahead.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
diff --git a/web/template/pkgreq_form.php b/web/template/pkgreq_form.php
index 904ab48f..d80a422c 100644
--- a/web/template/pkgreq_form.php
+++ b/web/template/pkgreq_form.php
@@ -24,7 +24,7 @@
<?php endif; ?>
</select>
</p>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/jquery@1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-typeahead.min.js"></script>
<script type="text/javascript">
function showHideMergeSection() {