JSFiddle - React, Tailwind, and code Playground
by Udi Talias
JavaScript
const style = document.createElement("style");
document.head.appendChild(style);
style.appendChild(document.createTextNode(''));
style.onerror = function(e) {
console.log(e);
}
const styleSheet = style.sheet;
styleSheet.insertRule(`.test { background-image: url("https://aaktrack.pubmatic.com/track?operId=7&p=156145&s=180702&a=1171418&wa=243&ts=1543309141&wc=16514&crId=153909363&ucrid=12468601323091201665&impid=092920F2-A730-4D45-B097-53E6D9228350&advertiser_id=3161&ecpm=36.214314&e=1"); }`, 0);
const div = document.createElement("div");
div.classList.add("test");
document.body.appendChild(div);