@@ -785,6 +785,20 @@ function getNodeCenters() {
785785
786786// Animate particles - v2.0 with continuous normalization
787787function animateFlow ( data ) {
788+ const runtime = window . OIG_RUNTIME || { } ;
789+ if ( runtime . reduceMotion ) {
790+ if ( ! runtime . particlesDisabled ) {
791+ runtime . particlesDisabled = true ;
792+ if ( typeof stopAllParticleFlows === 'function' ) {
793+ stopAllParticleFlows ( ) ;
794+ }
795+ const container = document . getElementById ( 'particles' ) ;
796+ if ( container ) {
797+ container . innerHTML = '' ;
798+ }
799+ }
800+ return ;
801+ }
788802 const { solarPower, solarPerc, batteryPower, gridPower, housePower, boilerPower, boilerMaxPower } = data ;
789803
790804 // Use cached positions
@@ -1415,8 +1429,11 @@ async function loadData() {
14151429 }
14161430 }
14171431
1418- await updatePlannerModeBadge ( ) ;
1419- await yieldIfNeeded ( ) ;
1432+ const shouldUpdatePlanner = ! isConstrainedRuntime || runtime . initialLoadComplete ;
1433+ if ( shouldUpdatePlanner ) {
1434+ await updatePlannerModeBadge ( ) ;
1435+ await yieldIfNeeded ( ) ;
1436+ }
14201437
14211438 // Aktualizovat boiler mode (ve flow diagramu), ale zachovat třídu mode-changing pokud existuje
14221439 const boilerModeFlowData = await getSensorStringSafe ( getSensorId ( 'boiler_manual_mode' ) ) ;
@@ -1605,17 +1622,20 @@ async function loadData() {
16051622 window . DashboardAnalytics . updateBatteryEfficiencyStats ( ) ;
16061623 }
16071624
1608- // Update planned consumption statistics
1609- if ( window . DashboardPricing ?. updatePlannedConsumptionStats ) {
1610- window . DashboardPricing . updatePlannedConsumptionStats ( ) ;
1611- }
1625+ const pricingActive = typeof pricingTabActive !== 'undefined' ? pricingTabActive : false ;
1626+ if ( pricingActive ) {
1627+ // Update planned consumption statistics
1628+ if ( window . DashboardPricing ?. updatePlannedConsumptionStats ) {
1629+ window . DashboardPricing . updatePlannedConsumptionStats ( ) ;
1630+ }
16121631
1613- // Phase 2.6: Update what-if analysis and mode recommendations
1614- if ( window . DashboardPricing ?. updateWhatIfAnalysis ) {
1615- window . DashboardPricing . updateWhatIfAnalysis ( ) ;
1616- }
1617- if ( window . DashboardPricing ?. updateModeRecommendations ) {
1618- window . DashboardPricing . updateModeRecommendations ( ) ;
1632+ // Phase 2.6: Update what-if analysis and mode recommendations
1633+ if ( window . DashboardPricing ?. updateWhatIfAnalysis ) {
1634+ window . DashboardPricing . updateWhatIfAnalysis ( ) ;
1635+ }
1636+ if ( window . DashboardPricing ?. updateModeRecommendations ) {
1637+ window . DashboardPricing . updateModeRecommendations ( ) ;
1638+ }
16191639 }
16201640
16211641 // Performance chart removed (legacy performance tracking)
0 commit comments