In earlier history, the Austro-Hungarian empire was less religiously tolerant than the Ottoman Empire, but that was no longer true by the 1910s, when did the switch happen?

My guess is sometime during the enlightenment