Complex sentence: Liverpool, Exeter, and Preston were the first in 1816, but others soon followed, so that by 1821, no town with population greater than 50,000 was without gaslight.
Split into simpler sentences: Liverpool, Exeter, and Preston were the first in 1816. Others soon followed; by 1821, no town with population over 50,000 was without gaslight.