Alfred Hitchcock made cameo appearances in 39 of his 52 major films. The cameos became a trademark of his films, and a big hit with audiences - who often made a sport of trying to spot him.
Eventually Hitchcock made the decision to place the cameos earlier in his films, as to not distract the audience from the plot.