Apologies for being an arsehat. But we all know it's when the ball is played. If it was when the ball is received, you would have players onside when the ball is passed to them, but if they've just ran clear through the defence and receive the ball, that would be offside.