collectiveaccess / providence

Cataloguing and data/media management application
GNU General Public License v3.0
290 stars 167 forks source link

Very Slow Page Load When WAN is Down #1458

Open miqrogroove opened 1 year ago

miqrogroove commented 1 year ago

Using Providence on a local network, I've noticed every time the WAN link goes down, all of the request times increase to 15+ seconds, which is painfully slow.

With DevTools open, I can see that every request is waiting on a 15-second DNS timeout for maps.googleapis.com prior to loading several of the local script files.

Is there a more efficient way to queue that script, or just disable it when not in use?

For example, deleting this line of code immediately resolves the symptoms:

https://github.com/collectiveaccess/providence/blob/e87363bb4b6086ff5f3be9b799558f92b45c27c5/app/conf/assets.conf#L93

Same problem and same workaround observed in Pawtucket.