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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c1bd-40874.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c1bd-40874.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?