Green’s Dictionary of Slang

thigh-slapper n.

[the exaggerated slapping of one’s thighs to intimate the intensity of one’s hilarity]

[1960s+] (often used ironically) a supposedly very amusing joke.