brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Firefox Responsive Design Mode can throttle the network, from GPRS to Wi-Fi

Firefox
~/tips/tip-firefox-rdm-throttling

Ctrl+Shift+M > No throttling > Good 3G

Slows the network in Firefox's responsive view to test a page on a weak connection.

My own connection in Leiden is fast, so I never notice how a page loads on a bad one. Firefox has a throttling list inside its responsive view.

Press Ctrl+Shift+M (Cmd+Opt+M on a Mac) to toggle Responsive Design Mode. In the toolbar there is a list box that reads No throttling. Open it and pick a profile: GPRS, Regular 2G, Good 3G, Regular 4G/LTE, DSL, Wi-Fi or Offline. Each profile sets a download speed, an upload speed and a minimum latency.

Ctrl+Shift+M > No throttling > Good 3G

Reload the page and watch it load at that speed. Offline is useful too: it shows what a visitor sees when a page depends on a request that cannot succeed.

The same toolbar has a touch simulation button, which turns mouse events into touch events, so a mouse drag becomes a touch drag. And a camera button takes a screenshot of the viewport. The selected device and its orientation are remembered between sessions.

Two settings in the Settings menu reload the page when you toggle touch simulation or change the user agent. If you have unsaved form input on the page, those reloads cost you that work, so look at the warning Firefox shows after you first change one.

The docs say the values are approximate, so do not use them for exact performance measurements. They are good enough to feel the difference between a page that loads in a second and one that needs fifteen, and to spot a spinner that never goes away. For numbers you can quote, measure on a real device and a real connection.

Further reading: Firefox Source Docs: Responsive Design Mode

More Firefox tips view-source:https://www.mozilla.org/#line100 ^ invoice history about:processes right-click the request > Edit and Resend Windows and Linux: Ctrl+B All Firefox tips (10) All topics

Link