tomillie / HockeyArenaRevampedPublic

Public issue tracking & roadmap for the HockeyArena Revamped web extension.
1 stars 0 forks source link

Additional attributes performance optimisations #96

Open tomillie opened 2 months ago

tomillie commented 2 months ago

Fix: Entire table is replaced when data is loaded

When the additional attributes are finished loading and being rendered to the stats table, as a performance optimisation, the entire table is replaced with the newly built table. This causes issues when updating values or changing the state of the table element. For example when changing training schedule, assigning the player to the line or among substitutes. If the user changes the training schedule before the data is loaded, the following table replacement will overwrite changes done by the user (no training schedule will be selected and he is forced to reselect it again).

Proposed solutions


Loading mechanism updates

When the data needs cache revalidation, it can take a considerable amount of time to do the process for multiple players, especially with slow internet connection. This can delay entire process of additional attributes loading.

Proposed solutions