There was a pretty substantial length of time between the beginning of the industrial revolution and the development of transportation infrastructure that allowed people to live far from where they worked, and get most of their food from distant lands. Your experiment was done many times. The result was not clean cities.