diff options
author | Felix Yan <felixonmars@archlinux.org> | 2021-01-22 17:43:57 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2021-02-20 17:26:32 +0100 |
commit | 21c457817fe8ec5db60a10e2270f9fcf951aca5f (patch) | |
tree | d4251296c69feef4a408f2281f502ff3c9fb98f8 /web/html | |
parent | 933d2705f935011035ee661e4a7acac37cd7aca3 (diff) | |
download | aur-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/html')
-rw-r--r-- | web/html/home.php | 2 | ||||
-rw-r--r-- | web/html/packages.php | 2 | ||||
-rw-r--r-- | web/html/pkgmerge.php | 2 |
3 files changed, 3 insertions, 3 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() { |