Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of AudioContext Suspender

AudioContext Suspender by h43z

Suspending AudioContext instances automatically

4.5 (4 reviews)4.5 (4 reviews)
138 Users138 Users
You'll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
Many websites seem to be opening AudioContexts (through the Web Audio API https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API) without ever suspending them, even if they don't play any sound.

This leads to high CPU utilization and therefore increased energy consumption of your devices. Which can also lead to bluetooth audio problems.

This extension fixes that problem. It automatically suspends newly created AudioContexts after 2 seconds.

The extension resumes an already auto suspended AudioContext for another 2 seconds if it detects that the webpage wants to play another sound.

If a websites needs to play sounds continuously or longer than 2 seconds with the Web Audio API you can disable the extension for the website with a localstorage entry with the key disableAudioContextSuspender and some truthy value.

code: https://github.com/h43z/audiocontextsuspender
created by: x.com/h43z
Rated 4.5 by 4 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
3
4
0
3
1
2
0
1
0
Read all 4 reviews
Permissions and dataLearn more

Required permissions:

  • Access your data for all websites
More information
Add-on Links
  • Support site
Version
1.4
Size
8.15 KB
Last updated
10 months ago (Oct 28, 2024)
Related Categories
  • Other
License
Mozilla Public License 2.0
Version History
  • See all versions
Add to collection
Report this add-on
Release notes for 1.4
You can now disable the extension AudioContextSuspender for certain websites by creating a LocalStorage entry with the key disableAudioContextSuspender and a truthy value.
More extensions by h43z
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.