The second largest group was from Germany
Explanation:
Anglo-Boer War, or South African War, was fought between the British Empire and two independent Boer states, the South African Republic (Republic of Transvaal) and the Orange Free State, over the Empire's influence in South Africa. The trigger of the war was the discovery of diamonds and gold in the Boer states.
Loyalty to old immigrants and discrimination against new immigrants is a very broad statement that makes it more correct. Consider that americans, or europeans in particular, wanted all the land they could get their hands on and didn't want to share any of it. As a result their desires were shown in nativism.
Hope this helps!