Mozilla does this already, to a degree. Using the Dark Reader extension hangs some sites for several seconds and Mozilla asks me if I'd like to kill it
The issue is more with extensions that don't hang but slows you down throughout your usage. Especially if there are couple of those you feel that the browser is sluggish but don't associate it to the extensions.