Skip to content

Instantly share code, notes, and snippets.

View esender's full-sized avatar
🏠
Working remotely

Marat Abdulin esender

🏠
Working remotely
View GitHub Profile
@esender
esender / index.html
Last active February 17, 2021 20:16 — forked from RubaXa/index.html
Repaint: offsetWidth vs. getBoundingClientRect (http://jsbench.github.io/#e0ba2a23be6026711839a95385934f06) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Repaint: offsetWidth vs. getBoundingClientRect</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>