erohtar / Dasherr

A minimal and lightweight dashboard for your self-hosted services (and bookmarks)
GNU General Public License v3.0
187 stars 8 forks source link

[Bug] Internet Outage or High Packet Loss Causes Dasherr to Lag or Fail #21

Open LeeThompson opened 1 year ago

LeeThompson commented 1 year ago

In sub-optimal network conditions, Dasherr may fail to work on intranet servers due to external links, primarily the loading of font awesome's css.

I would suggest having some PHP code do the following:

  1. Check to see if font awesome is enabled (true by default)
  2. Simple check to see if cdnjs.cloudflare.com resolves and is reachable
  3. If 1 and 2 is true, then include the <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"> part of the headsection; otherwise omit it. (Obviously any font awesome referenced graphics will be missing but Dasherr will load).

This would also allow, with additional work, having a local font awesome installation or some other alternate stylesheet.

(Background: We just had a 18 hour Comcast Business outage and I had to comment out the font-awesome stylesheet to have my intranet menu work.)