JSFiddle - React, Tailwind, and code Playground

by refhat

HTML

<button id="button">Button</button>

<div id="Element"></div>

JavaScript

$(function() {
$("#button").click(function(e){
      e.preventDefault();
      var $slowLoadingScript = $('<script src="http://external-slow-script.com/script.js"></script>');      

    $slowLoadingScript.load(function(){
      $("#Element").append(x);         
    });


  }); 
  });