I have to wonder if the better solution would be for browsers (and apps that are effectively broswers) to compress their data proactively.
I find that the ratio of browserish memory use to that of other programs is enough to render the latter insignificant most of the time.
Browsers can just suspend tabs. If they are separate processes, just send a SIGSTOP except for the actual active tab and run SIGCONT upon switching.