Measure network latency to make dynamic adjustments to content