When did the words 'nigger' and 'negro' start being treated as offensive by the majority of people including the bulk of the United States and UK?

by ExSidius

If I recall, it was still being used in texts and such very casually (see Ten Little Niggers) even in the early 20^th Century.

Searocksandtrees