speed up ui updating
This commit is contained in:
parent
afe3817395
commit
22bea2c53d
1 changed files with 8 additions and 10 deletions
|
|
@ -257,17 +257,15 @@ class ROICalculator {
|
|||
}
|
||||
});
|
||||
|
||||
// Update UI
|
||||
setTimeout(() => {
|
||||
this.updateSummaryMetrics();
|
||||
this.updateCharts();
|
||||
this.updateComparisonTable();
|
||||
this.updateMonthlyBreakdown();
|
||||
// Update UI immediately
|
||||
this.updateSummaryMetrics();
|
||||
this.updateCharts();
|
||||
this.updateComparisonTable();
|
||||
this.updateMonthlyBreakdown();
|
||||
|
||||
// Hide loading spinner
|
||||
if (loadingSpinner) loadingSpinner.style.display = 'none';
|
||||
if (summaryMetrics) summaryMetrics.style.display = 'flex';
|
||||
}, 500);
|
||||
// Hide loading spinner
|
||||
if (loadingSpinner) loadingSpinner.style.display = 'none';
|
||||
if (summaryMetrics) summaryMetrics.style.display = 'flex';
|
||||
} catch (error) {
|
||||
console.error('Error updating calculations:', error);
|
||||
// Hide loading spinner on error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue