well actually (as many gamers have already found out) opera have already done that !
its called opera gx https://www.opera.com/gx#network-limiter
Need every ounce of power your machine can give you? No need to close your browser. GX Control lets you set limits on how much RAM, CPU and network usage your browser takes up.