Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make data load faster on the asset (and sensor) page.
Issue 515 slow loading of asset page due to timerange query of its sensors (#533) * Set date range for loading data early on in the page loading process, and only use the timerange of shown sensors to set the date range if the date range isn't set by session variables already; minYear and maxYear are already set asynchronously after fetching the timerange Signed-off-by: F.N. Claessen <felix@seita.nl> * Fetch initial data already before page load is completed Signed-off-by: F.N. Claessen <felix@seita.nl> * async onreadystatechange, and refactor Signed-off-by: F.N. Claessen <felix@seita.nl> * Set initial date range much earlier, when initializing datepicker Signed-off-by: F.N. Claessen <felix@seita.nl> * changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
2 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters