I am using await Task.Delay(10); in unity C# for delay .After build and run in Web-GL format .The execution stops at this line that has delay .When I remove the delay it executes.
while (XAxiscurrentXpos <= -izvalue) 
{ 
    await Task.Delay(10); 
    XAxiscurrentXpos += 0.001f; 
    Vector3 posx = new Vector3(XAxiscurrentXpos, XAxisposition.y, XAxisposition.z); 
    XAxis.transform.localPosition = posx; 
}
 
    