JSFiddle - React, Tailwind, and code Playground

by tyage

CSS

div {
    width: 10000000000px;
    height: 10000000000px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
}

JavaScript

var start = new Date
for (var i=0;i<10000;++i) {
    document.body.appendChild(document.createElement('div'))
}
var img = document.createElement('img')
img.setAttribute('src', '')
img.addEventListener('error', function() {
  console.log(new Date - start)
})
document.body.appendChild(img)