There is also Leechblock which contains the same functionality along with blocking and some in-depth config. But this may be a cool solution for someone who only cares about the latency part.
I tried Leechblock, and found it unusable (on my Android phone). It broke my back bar, and often wouldn't follow through links (instead taking me to where I already was).