当前位置:网站首页>[learning notes] possible reasons and optimization methods for white screen on Web pages
[learning notes] possible reasons and optimization methods for white screen on Web pages
2022-07-24 06:51:00 【Father Zeng Pang】
Problem description
Page white screen , The details are as follows 
The main reason for page white screen is that page rendering is blocked
The reason why rendering is blocked
Probably because CSS Loading is blocked , And then because of CSS stay headb tag , As a result, only after loading CSS, To display the content , However CSS Loading is blocked for some reason , As a result, the following content cannot be rendered , So that the whole page becomes a white screen .
It could be JS Loading is blocked , As a result, the page cannot be parsed . Finally, the whole page becomes white .
Optimization method
The best way to optimize , It must be optimized directly CSS,JS Volume , So as to fundamentally solve the problem of slow loading , Load blocking problem
besides , The tricky way is to put a large volume CSS and JS Put in body Tail end , Then use a small amount for positioning and other basic styles CSS Put it in the head , Make sure that the page will load the basic styles and elements of the page first , Then load JS Of Script Labels can also be added async,defer attribute , send JS The loading of becomes asynchronous , such JS Loading will not block page parsing
边栏推荐
- [lvgl (4)] event and event bubble of the object
- Redis special data type bitmap
- MGR_mysqlsh_keepalive高可用架构部署文档
- 随机森林、LGBM基于贝叶斯优化调参
- sojson jsjiami.com.v6 爬虫js逆向
- Identification of Chinese medicinal materials
- Detailed explanation of class loader and parental delegation mechanism
- Breadth first search (template use)
- 创建WPF项目
- 分组后返回每组中的最后一条记录 GROUP_CONCAT用法
猜你喜欢

【LVGL(1)】LVGL的简单介绍

Special effects - bubble tailing occurs when the mouse moves

记录PHPSerializer工具类反序列化遇到的坑
![[lvgl (1)] a brief introduction to lvgl](/img/2e/2e155f1d3669c27ad1b090ca954224.png)
[lvgl (1)] a brief introduction to lvgl

Neural network superparameter adjustment (based on ray package)

Mac can't connect to local MySQL server through socket '/tmp/mysql Sock '(2) problem

(static, dynamic, file) three versions of address book

Special effects - click the mouse, and a random color of love will appear

【LVGL(3)】设置对象大小、位置、盒子模型、状态

sql server 同步数据库 跨网段无公网ip几个常见小问题问题
随机推荐
Talk about browser cache again
Experiment: creation, expansion, and deletion of LVM logical volumes
OSS authorizes a single bucket permission
深度优先搜索(模板使用)
ESP32超详细学习记录:NTP同步时间
【LVGL(1)】LVGL的简单介绍
(静态,动态,文件)三个版本的通讯录
[lvgl] [stage summary 1]
The character that appears the most times in the JS output string
GE口:SGMII模式和serdes模式
Sort by an attribute value of an object in the array
[lvgl (6)] display Chinese settings and make Chinese font
[jQuery自定义插件] 1 自定义缓存插件-jQueryCache
[audio decoding chip] Application of vs1503 audio decoding chip
[lvgl] API functions for setting, changing and deleting styles of components
Detailed explanation of class loader and parental delegation mechanism
sql server 同步数据库 跨网段无公网ip几个常见小问题问题
Mac can't connect to local MySQL server through socket '/tmp/mysql Sock '(2) problem
随机森林、LGBM基于贝叶斯优化调参
Redis分布式缓存学习笔记