国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - How to calculate the time above the fold of a page?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-18 10:55:23
0
2
628

Like the title
How to calculate the first screen time of the page?
The first screen may contain pictures and other resources, which may be rendered asynchronously.

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證0級講師

reply all(2)
phpcn_u1582

Use the timeline and profile functions of chrome devtools.

左手右手慢動作

Do you want to take a look or is it a business requirement? If you just want to take a look, you can use the devtool timeline.
If needed for development, you can get the time in the first line of the server script, and then after the client js completes loading of the page, you can calculate the total time from getting the entire request to response and rendering based on the elapsed time.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template