Today I learned that the knock-knock joke may have its roots in Act 2, Scene 2 of Macbeth from 1606. While the Macbeth version lacks the (post-1606) punchline, it’s easy to imagine the Porter responding to the knocks by letting hundreds of years of horrible humour into the castle.
Now you know!