Add-on link on Addons.mozilla.org
This is a Firefox web-ext add-on for Firefox Android only. It provides a "Force Reload All" menu item, clicking which will activate and reload all tabs one by one, effectively force reload all tabs.
Firefox Android provides a convenient feature called Tab Queue. It allows user to "open links in the background without leaving the app you're on". A good use of this feature is as following:
- User opens RSS reader while offline
- RSS reader only provides article summary, user finds a few articles interesting and clicks the link to send them to Firefox Tab Queue
- Those articles stays in Firefox's background and are not loaded
- When user goes back online, they switch to Firefox and start deep reading the previous queued articles
- Now, user will have to WAIT for each article to load after clicking its tab, because they are not loaded in background
This add-on wants to solve the pain point explained in 5. above. Once user clicks the menu item provided by this add-on. All tabs will be force-reloaded, maximally utilize the active network.
Clicking the menu item provided by this add-on will trigger the following flow:
- Query for all tabs via
tabs.query()
- For each tab:
a. Make it active via
tabs.update()
b. Trigger a reload viatabs.reload()
c. Wait 100ms before cycle to the next tab - After the whole cycle is done, Firefox will continue to load all tabs' content
There are a few "reload all" add-ons on Addons.mozilla.org (AMO), however they don't resolve the above pain point because they don't activate the tabs so they will stay in background and not loaded.