Skip to content

Commit

Permalink
Update paint holding test to be a bit better at detecting effects
Browse files Browse the repository at this point in the history
  • Loading branch information
mmocny committed Nov 19, 2024
1 parent f74bc51 commit ebc157e
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions sandbox/paint-holding-simulation/public/delayed.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<script>performance.mark("new document load");</script>
<title>Delayed Response</title>
</head>
<body>
<script src="jank.js"></script>
<div style="background-color: red; width: 500px; height: 500px;"></div>
<div>Contentful text.</div>
</body>
</html>
<!DOCTYPE html><html><head><script>performance.mark("new document load");</script><title>Delayed Response</title></head>
<!-- Paint holding active until <body> + 500ms, or something like that -->
<body><script src="jank.js"></script><div style="background-color: red; width: 500px; height: 500px;" onclick="this.textContent = 'boo'"></div>
<!-- Once this next div flushes we will unblock paint holding (or timeout first) -->
<div>Contentful text.</div></body></html>

0 comments on commit ebc157e

Please sign in to comment.