Although Norway remained neutral in World War I , it suffered heavy losses to its shipping .