Improve dashboard live loading #176

Closed
opened 2020-01-29 19:40:33 +01:00 by nik · 1 comment
Owner

Right now, the dashboard refreshes itself by just reloading the full page via AJAX and extracting the dashboard div. This is very inefficient, both for the server, the network and the client device.

Several solutions, in order of preference:

  • Use django-live-templates
  • Really use include_by_ajax
  • Rebuild include_by_ajax

While at it, widgets should get an option for how often they are refreshed, if they are not fully dynamic (like with live-templates).

I would prefer live-templates because it is least resource hungry, and we can reuse it in many other places (think of live-updating the smart plan in Chronos if something changes).

Right now, the dashboard refreshes itself by just reloading the full page via AJAX and extracting the dashboard div. This is very inefficient, both for the server, the network and the client device. Several solutions, in order of preference: * Use django-live-templates * Really use include_by_ajax * Rebuild include_by_ajax While at it, widgets should get an option for how often they are refreshed, if they are not fully dynamic (like with live-templates). I would prefer live-templates because it is least resource hungry, and we can reuse it in many other places (think of live-updating the smart plan in Chronos if something changes).
Author
Owner

Closed in favor of !2690

Closed in favor of !2690
nik closed this issue 2022-07-18 19:29:04 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core#176
No description provided.