Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm fed up with browsers eating up CPU cycles by running useless flash and javascript. This question is related to this one but it's slightly different.

Is it possible to automatically switch all scripts off except the ones on the currently focused (currently viewed) page?

share|improve this question
add comment

3 Answers

For firefox you can use flashblock this blocks all flashes on all tabs, than if you want to play a flash from one tab you simply click play button. With flashblock you can play only the flash you want to.

share|improve this answer
add comment

For Firefox use Noscript.
By default it does exactly what you're asking for.

share|improve this answer
add comment

NoScript would work, but when you move between pages you would have to revoke the page permissions from the page (or tab) you're leaving and give permission to the page you're moving too.

Flash and Javascript don't eat many CPU cycles unless they are doing something rather intensive (like playing a movie or running an application). Stopping those in their tracks might have adverse effects to whatever is running in that window. Most well designed sites limit the Flash and Javascript usage to small portions or provide that they don't continuously run in a loop.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.