When the project is initialized, five shared images will be preloaded as shown above. In a Web browser, everything works fine in Android, but in an IOS WebView, when you enter a project, it shows a white screen and flashes by, which is a terrible experience.

I tried adding defer to script, but it didn’t solve the problem;

Finally, through the analysis of the submitted code, the Image problem was finally located.

The guess is that, in a single thread, the SRC of the Image may synchronize to obtain resources, resulting in js subsequent code blocking, resulting in delayed UI rendering and white screen.

The solution is to add a delay to the SRC address and the problem is resolved