Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a Tampermonkey script in Chrome that auto-refreshes every 4-8 seconds a page within a page range that looks for changes in the HTML elements and acts within a certain threshold.

The script itself works without a hitch, and I think it will continue to work for what I need. The problem is my computer runs quite slowly and choppily when I try to run this script in parallel fifteen to twenty times. I want to run more in parallel but I don't want to reduce how often the page loads because that reduces the effectiveness of the script.

I think my best bet is if I can not render the page, all without breaking the script. I don't need to see the page when it loads each time, so if I can altogether stop the page renders and have the script run on the HTML alone, that'd be great.

That said, I am open to other solutions instead or in addition to help me.

share|improve this question
Have you looked at how parts of Chrome are using the memory using the built in information page? – Ramhound Oct 7 '13 at 12:09
how do I check this? – 0xFFF1 Oct 7 '13 at 12:10
click the settings menu in the browser and select View background pages – Ramhound Oct 7 '13 at 12:16 – 0xFFF1 Oct 7 '13 at 13:23
Since you just want to check the HTML, don't refresh the page. Use GM_xmlhttpRequest to fetch the page and compare the results. This will be vastly faster, but won't always work on AJAX-driven pages. – Brock Adams Feb 6 '14 at 23:38

You must log in to answer this question.

Browse other questions tagged .