Image disappears momentarialy when changing image in grid cell

I have this square box in a cell of a grid.
image

When a user taps it, it changes to this…
image

In the transition it momentarily looks like this…
image

Doesn’t do that in all of my apps.

Does anyone know if styling or something that makes some grids make hard work of image changes, and others not?

I’m using the Common grid and switching seems quite adequate (no intermediate blank) in Chrome as PWA, on Windows PC or Android phone. Coded:

If ShareStat = "off" Or ShareStat = "" Then
  ShareStat = "on"
  grdListMenu.setValue(11,mcol,"&nbsp;&nbsp;Group Share<img  width = 35 height=25 src='on1.jpg' align = right id='grdListMenu_11_0' align=center>")
Else
  ShareStat = "off"
  grdListMenu.setValue(11,mcol,"&nbsp;&nbsp;Group Share<img  width = 35 height=25 src='off1.png' align = right id='grdListMenu_11_0' align=center>")
End If

Thank you. That’s what I’m using too.

If InStr(HVACReadGrid.getValue(0,1),"GreyBox") > 0 Then
  HVACReadGrid.setValue(0,1,"<img width=35 height=35 src='GreenTick.png' id='HVACReadGrid_0_1'>")
Else
  HVACReadGrid.setValue(0,1,"<img width=35 height=35 src='GreyBox.png' id='HVACReadGrid_0_1'>")
End If

This may be unrelated, but I have found that after a full deploy to my server, some image files will pause a short second or two before appearing on a form. I’ve thought this could be because Chrome might not have it downloaded, and says “oops” better get that pronto. After this happens there is no short time blank image area again until I do another full deploy.

John

If you open the chrome inspector and go to the network tab, clear it, then open your app, you’ll see exactly what is downloaded when. That may answer your curiosity. If this delay is not acceptable, then you may want to consider predownloading the images before going to this form, for example, during the time you are showing the initial logo screen at startup.

Good suggestion. However, I’m not bothered by this delay, but that’s not to say users might get upset.

John