emojitracker icon indicating copy to clipboard operation
emojitracker copied to clipboard

Performance: Use PageVisibility API to avoid burning CPU when invisible?

Open ericlaw1979 opened this issue 4 years ago • 0 comments

The tool uses a ton of energy even when the tab is not visible. Could you use the [PageVisibility API] (https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API) to pause updates when the tab is not visible to the user?

image

ericlaw1979 avatar Mar 01 '21 20:03 ericlaw1979