Products from slavery had many ways to enter the supply chain. The claim that a boycott by rich people stopped it seems to be utterly unsubstantiated.
Slavery must not have seemed uneconomical to the southern US when they went to war to preserve it.
Indeed, the sudden drop in slave-picked cotton as the US civil war waged had a big impact in the UK https://www.jstor.org/stable/j.ctv1hqdjg9
> Slavery must not have seemed uneconomical to the southern US when they went to war to preserve it.
From what I can tell it was more seen as a way of life.
As for economics, this is complex. There isn't a cutoff where you can say one day it is economical, the next it isn't. Instead the industrial revolution was slowly eroding things. Also even if slavery isn't economical to society as a whole, to the slave owner it was probably economical - society could get more production from free workers than from slaves, but as a slave owner you still get the benefits of the slave's production while a free worker would make your personal farm smaller and so you would get less. (similarly, free countries are richer overall, but if you are the leader of a dictatorship your life is much better than the leader of a free country)