JSFiddle - React, Tailwind, and code Playground

HTML

<div style="height: 100px; width:100px; background-color: blue;"></div>

JavaScript

var sheet = document.createElement("style");
sheet.textContent = '.foo { ignored: bar; }';

function foo() {
    if (sheet.parentNode)
        sheet.parentNode.removeChild(sheet);
    else
        document.head.appendChild(sheet);
    setTimeout(foo, 300);
}

foo();