They can't raise the flag until the offside player actually commits an offside offence.
There was a situation where Raul Jimenez was on the left wing, and the assistant raised the flag as soon as he touched the ball.
Didn’t we see a delayed offside flag, when the ball went long, down the South African left wing? Thought they were dust here?