当前位置:网站首页>[attribute comparison] defer and async
[attribute comparison] defer and async
2022-07-03 06:53:00 【Alisone_ li】
defer
defer
Wait until the entire page is rendered normally in memory (DOM The structure is completely generated , And other script execution completed ), Will execute ;async
async
Once the download is complete , The rendering engine will interrupt rendering , After executing this script , Continue rendering .summary
In a word ,
defer
yes “ After rendering, execute ”,async
yes “ Download and execute ”. in addition , If there are more than onedefer
Script , They will be loaded in the order they appear on the page , The multipleasync
Scripts don't guarantee the loading order .
边栏推荐
- HMS core helps baby bus show high-quality children's digital content to global developers
- Local rviz call and display of remote rostopic
- Software testing assignment - day 3
- Class and object summary
- Golang operation redis: write and read hash type data
- Architecture notes
- Integration test practice (1) theoretical basis
- 【code】偶尔取值、判空、查表、验证等
- php安装composer
- 机械观和系统观的科学思维方式各有什么特点和作用
猜你喜欢
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
Software testing assignment - the next day
Realize PDF to picture conversion with C #
熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
JMeter JSON extractor extracts two parameters at the same time
2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)
golang操作redis:写入、读取hash类型数据
Example of joint use of ros+pytoch (semantic segmentation)
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
Personally design a highly concurrent seckill system
随机推荐
[untitled] 5 self use history
10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”
远端rostopic的本地rviz调用及显示
Heap sort and priority queue
论文笔记 VSALM 文献综述《A Comprehensive Survey of Visual SLAM Algorithms》
Use the jvisualvm tool ----- tocmat to start JMX monitoring
Summary of the design and implementation of the weapon system similar to the paladin of vitality
Yolov1 learning notes
100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners
学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
Journal quotidien des questions (11)
Climb movie paradise 2021 hot
Golang operation redis: write and read kV data
【无标题】
Integration test practice (1) theoretical basis
Understand software testing
error C2017: 非法的转义序列
golang操作redis:写入、读取hash类型数据
【开源项目推荐-ColugoMum】这群本科生基于国产深度学习框架PaddlePadddle开源了零售行业解决方案
2022年华东师范大学计科考研复试机试题-详细题解