JSFiddle - React, Tailwind, and code Playground
HTML
<div class="hidden content-wrapper">
<h1>
Data loaded
</h1>
<div class="content">
Data loaded
</div>
</div>
CSS
.hidden{
display: none;
}
JavaScript
$(function() {
// Put this piece of code inside of your "main" html file and it will catch the event
$('.content-wrapper').on('content:loaded', function() {
$(this).show();
});
// In your HTML page that you load, fire this in the $(function(){}) code
$('.content').trigger('content:loaded');
});