"Long timelines are an indicator of jank"

While playing as a web developer in Chrome, I ran into this problem Long frame times are an indication of jank. After some experimentation, I still do not understand. Then I created a new .htmlfile with the following (almost empty) content:

<!DOCTYPE html>
<html>
<head>
  <title>Empty</title>
</head>
<body>
<p id="p"></p>
<script>document.querySelector("#p").innerHTML = Date.now();</script>
</body>
</html>
Run codeHide result

( Date.now()means that Chrome is sure to repaint something)

... opened it in Chrome Incognito modeand reloaded the page several times in a different way ( Ctrl+ R, Ctrl+ Shift+ Rand this is the third thing).

, 5 20 2 !
( : 2 .)
, .

, .


Chrome, , .


. 17.3 mins:

+4
1

, JSBIN - :

<!DOCTYPE html>
<html>
<head>
  <title>Empty</title>
</head>
<body>
<p id="p"></p>
<script>document.querySelector("#p").innerHTML = Date.now();</script>
</body>
</html>
Hide result

, , . , , " ".

.

Performance in Chrome 60.0.3112.101 (64 bit)

, - , - , .

0

Source: https://habr.com/ru/post/1629458/


All Articles