AUR web interface

Tasklist

FS#43205 - Use local copy of jquery.min.js

Attached to Project: AUR web interface
Opened by aaron ps (krom) - Tuesday, 23 December 2014, 15:15 GMT
Last edited by Lukas Fleischer (lfleischer) - Sunday, 14 June 2015, 17:03 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version 3.5.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently AUR pages uses jquery from google cdn, there are 4 files using this:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

This ajax.googleapis.com might get connectivity issues on some world locations. Currently I'm on China, and tested from several locations, this ajax.googleapis.com will never return anything and the problem is that the browser will wait until timeout to show the content.

This waiting is random, but it goes between 30 and 120 seconds, browsing AUR like this is not nice.

Best would be to use a local copy of the aforementioned file and in the future try to not use google cdn, some countries blocks it.

The 4 files are: web/html/{home,packages,pkgmerge}.php and web/template/pkgreq_form.php

This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Sunday, 14 June 2015, 17:03 GMT
Reason for closing:  No response
Comment by Lukas Fleischer (lfleischer) - Wednesday, 07 January 2015, 11:44 GMT
As I already mentioned on IRC: This is copied from archweb, we should talk to Dan before changing this.
Comment by Evangelos Foutras (foutrelis) - Friday, 12 June 2015, 15:21 GMT
Browsers should be able to display content before the JavaScript files are loaded (since those are placed near the bottom of the page).

Which browser are you using that doesn't behave like this?

You also need to make sure that it's not a general page loading issue by temporarily disabling JavaScript in your browser and seeing if the loading delays are gone.

Loading...