This statement is a bit problematic, because web browsing has slowly become the no. 1 most RAM-heavy workload.
I did an experiment a couple of hours ago, trying to memory starve my 16 GB Air. I launched literally every single app I have on the MacBook, including a game (Disco Elysium), a small VM with NixOS, my heavyweight IDE (RubyMine) and one of my web apps, some 3D modeling SW (Blender), a game dev engine + IDE (Godot). I opened a couple of DSLR photos in Affinity Photo, started Spotify, started playing a movie in VLC, opened every app bundled with macOS, and my memory pressure was still in green.
Then I added Safari with 10 tabs and Firefox with a bunch of JS-heavy sites and boom, 6 gigabytes of swapped memory.
The web sucks.