I extracted the following passage which was hanging there without any references. Please verify it with references, after which it can be reinserted:

When the city was founded in the middle of 18th century, it had predominantly Muslim population. In the late 19th to early 20th century, the Armenian Christian population increased and prevailed in number over the Muslim. In Soviet times Shusha became the second largest town in Nagorno-Karabakh and the first in terms of predominantly ethnic Azeri population.
you can start here.