Closed Bug 1083267 Opened 10 years ago Closed 9 years ago

Employ emergency counter measures if the Marketplace fails to load

Categories

(Marketplace Graveyard :: Code Quality, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: clouserw, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [ktlo][possible_future_need])

Sometimes the loading screen for the Marketplace just spins.  We should be able to recognize a broken situation and try to fix it.  A good first start would be a loader timeout that:

* Verifies they are online (this should have already happened by now)
* clears their localStorage
* clears their local offline cache
* resets any region/carrier overrides
* logs everything it is doing and why
* reloads the page
Blocks: 1067929
Keywords: perf
Priority: -- → P2
The one that concerns me more is when you end up with a blue x in the top left hand corner and nothing else. Is that something we can deal with in this, or is it a failure of our code to even load?
The blue X in the top left corner is a failure of (usually all) our static assets to load. Even if we could detect it by somehow hacking around the HTML, we don't know what causes it, so we don't know what we could do in this situation...
(In reply to Mathieu Pillard [:mat] from comment #3)
> The blue X in the top left corner is a failure of (usually all) our static
> assets to load. Even if we could detect it by somehow hacking around the
> HTML, we don't know what causes it, so we don't know what we could do in
> this situation...

We could/should include some JS in the package (damn CSP disallowing inline scripts) that uses the Resource Timing API to record if/when resources load and if they fail, report it to some service like Ashes/New Relic/Sentry. If we can get numbers on how often this happens, that would help us better assess what's going on.
Blocks: 1096663
Whiteboard: [ktlo]
This is an interesting problem, with no clear solution. Rearchitecting the loading of Marketplace and assets *could* help address it, but... short of a major overhaul, this is not going to get addressed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Whiteboard: [ktlo] → [ktlo][possible_future_need]
You need to log in before you can comment on or make changes to this bug.