People stopped coming to America during the Outbreak of WWI, when the Immigration Act of 1924 was pass, restricting entry to 2% of the total number of people allowed from each nation (and prohibited Asians), It was not Trump's travel ban.
Explanation: Americans needed to conserve what they had because it was extermely hard to get some stuff because a lot of it was being sent to the Front Lines.