Aka: LAAAAAAAAAAAAAG.

So, it's not an uncommon occurrence that, when playing, the input is rather... sluggish. Mouse clicks take seconds to process, if at all, or I need to hold down the button for a second or two instead of just clicking. Frequently this is combined with slowdown and drops in frame rate.

As you can imagine, this makes effective playing a problem. So, what are some tips to improve performance? Browser is Firefox, by the way.