FlowFuse / FlowFuse/node-red-dashboard

Throttle ResizeObserver to improve performance when handling multiple gauges on lower-powered devices

Open
#1,376 0 comments 0 reactions 0 assignees View on GitHub
needs-triage task
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Description

I'm raising this followup task as per the below PR review suggestion made by @Steve-Mcl

Original comment - https://github.com/FlowFuse/node-red-dashboard/pull/1353#pullrequestreview-2359440363

> This all looks good. Thanks for the video demonstration.

> I am however a little concerned about then there are many gauges on a lower powered device. The resize observer runs very fast. e.g:

> ![chrome_GnocVeZZsn](https://github.com/user-attachments/assets/00a2fe39-ac10-4f23-825b-cfd34ef05e52)

> Perhaps a follow up issue to throttle the observer just enough to give a little breathing space - perhaps limit updates upon resize to 1 in every 100ms?

> Again, happy for that to be a follow up task - so approving for now.

### Epic/Story

_No response_

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.