Two JavaScript timers vs one timer, for performance, is it worth dropping one?
<p>In a web app which I'm building, I have two loosely related bits of code running in two separate timers every one second.</p>

<p>I'm looking to optimize the Javascript, is it worth merging these two timers into one or is that just over the top?</p>

<p>Realistically, am I going to increase any performance (considering that we don't know what sort a system a visitor is running ) by merging two 1 second intervals into one 1 second interval?</p>

<p>As I understand it, JavaScript is single threaded so the more things happening, the more these stack up and block other things from happening (timers especially). I just don't know whether one measly timer running every second is an issue at all.</p>

<p>The reason for keeping the two timers separate would purely be code readability, which is fine on the server side where you control the hardware but I don't know what sort of browser or hardware my visitors will be running.</p>

<p>Thanks.</p>
