Was racism taboo when minstrel shows were popular? I don’t think it was…
There definitely are jokes that play with taboo subjects and derive the comedy from the sudden shock of the taboo thing. But other times people seem to just want to engage in the taboo for its own sake.