Firefox and the Silent Audio Killer: How Websites Waste Your CPU and Battery

2025-02-15

The author discovered annoying white noise in Firefox, stemming from websites inefficiently using the WebAudio API's AudioContext. Many sites create and leave AudioContexts active even without playing audio, leading to excessive CPU and battery drain. While Chrome automatically suspends unused AudioContexts, Firefox doesn't, prompting the author to create a browser extension to mitigate the issue. This extension automatically suspends AudioContexts and attempts to resume them when sound is needed, saving resources.

Development browser performance