When the mobile h5 page is opened, it will flash to show the dom structure that does not load css, and then become the page that loads css normally.

uses a simple mobile login page written by jquery+rem.

the problem is that when you first open it, you flash the structure of the dom page that does not load css, as if the page collapsed, and immediately after the flash, the css is loaded to become a normal page.

I can"t even load rem in front of css. How can I avoid such a bad experience?

Jan.13,2022

you can try the skeleton screen, which is the skeleton of the page layout according to your page structure, but there is no specific content to wait for the content to load and then fill in https://codeshelper.com/a/11.


1, css style code redundancy, if it is, then try to standardize writing.
2. Do not initialize and load so many css styles, this problem will occur when the network speed is slow.
3. Css should not be written in this file as far as possible, and write a file package reference file separately.

Menu