Some websites make safari go crazy, and use 70% CPU! This causes everything else on this desktop to grind to a halt.
Is there a way to restrict safari to never go beyond a certain amount of CPU?
(btw - It's not just flash)
Enable the Debug Menu in Safari. One of the commands is Pause Web Process, another is Crash Web Process. Or the web process can be quit (or Force Quit) in Activity Monitor or any similar app.
And be sure to keep your Flash plugin current. Keep everything current/updated!
It is not possible to set the CPU limit for websites, but it is possible to limit the plug ins and extensions.
Disable things like Java and Flash Player .....
or for more serious use
Enable Safari’s Hidden Debug Menu
Launch the Terminal and enter the following defaults write command:
The “Debug” menu will be visible to the far right in Safari’s menubar choices. If you want to disable the menu, go back to the Terminal and type:
There are a few extensions that can help you.
ClickToPlugin is a great extension as it lets you block any plugin you want. While plugins run in their own processes, they often tend to be poorly written resource hogs (I'm looking at You, Adobe Flash!).
Any script blocker will do. There are several 3rd party scripts used by various websites that are not only annoying, they can also be huge resource hogs.