JSFiddle - React, Tailwind, and code Playground

by steveukx

HTML

<div id="container">
...loading...
</div>

JavaScript

var svgSrc = 'https://web.marketdatasystems.com/' + 
             'ipad/chart.svg?';

function enrichSvg(e) {
    var x = e.type;
    debugger;
}

jQuery('#container')
    .empty()
    .append( jQuery('<object />')
         .css({
             width: 1024,
             height: 768
         })
         .attr('type', 'image/svg+xml')
         .attr('data', svgSrc + Date.now()));

setInterval(function(){
console.log( jQuery('svg g').length );
}, 500);