Jesus was being mocked and abused by those who passed by, the religious leaders, and those who were crucified with Jesus.
those who passed by heaped abuse (literally they blasphemed): They shook their heads to show contempt (see Lamentations 2:15). They also mocked his claim that he would destroy the temple (see Mark 14:58).