JSFiddle - React, Tailwind, and code Playground
CSS
.some-div {
background-color: red;
position: relative;
}
JavaScript
var f = document.createDocumentFragment(),
i = 0,
max = 10000,
d;
for (; i < max; i++) {
d = document.createElement('div');
d.innerHTML = 'test';
d.className = 'some-div';
d.style.top = parseInt(Math.random() * 1000, 10) + 'px';
d.style.left = parseInt(Math.random() * 1000, 10) + 'px';
f.appendChild(d);
}
document.body.appendChild(f);