JSFiddle - React, Tailwind, and code Playground

by beej

JavaScript

// http://api.jquery.com/jquery.holdready/

(function () {
    $.holdReady(true);
    
    console.log("I'm going to hold your events hostage for 500ms! Mwahahahaha.");
    
    setTimeout(function () {
        $.holdReady(false);
        $(document).trigger('ready');
    }, 500);
}());

$(function () {
    console.log('an event!'); 
});

$(function () {
    console.log('are we ready yet!');
});