JSFiddle - React, Tailwind, and code Playground

by SASSACB

JavaScript

(function() {
    
    ['https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js',
 'https://drive.google.com/uc?export=download&id=1KTppvVqQcVewTOJ4Opy6jzIzywcpk3G7',
      'https://brainysmurf.github.io/js/main.js']
.forEach(function(src, index, arr) {
      var tag = undefined;
      if (src.endsWith('.js')) {
        tag = document.createElement('script');
        tag.src = src;
        tag.async = false;
      } else {
        tag = document.createElement('link');
        tag.rel = "stylesheet";
        tag.href = src;
      }
      if (index === (arr.length-1)) {
          tag.onload = function () {
              $(function () {
                  main();
              });
          };
      }

      document.head.appendChild(tag);

    });

})();