Bug 7391 - user isn't informed when javascript fails to load
Summary: user isn't informed when javascript fails to load
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2019-10-08 15:02 CEST by Pierre Ossman
Modified: 2022-03-24 12:56 CET (History)
0 users

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2019-10-08 15:02:58 CEST
If one of the javascript files fails to load in Web Access then the users gets no feedback of this. The page will just remain in its loading state until the user gives up. The only clue something has gone wrong is in the browser console, which most users probably don't know about.

Detecting this can be done via the "error" event, and we actually already have a handler for this. However the event fires a bit differently for loading errors and we need to set up the listener with capture for it to work:


A capture listener needs to be careful though as we probably don't want to trigger on stuff the javascript itself fails to load, e.g. images.

Note You need to log in before you can comment on or make changes to this bug.