JSFiddle - React, Tailwind, and code Playground

HTML

<img id="picture" src="http://lorempixel.com/g/100/100" />
<div id="left-bubble"></div>

CSS

#left-bubble {
    width:100px;
    height:100px;
    background-color:red;
    display:none;
}

JavaScript

function bubbleOnLoad() {
    $img = $('#picture');
    $img.load(function () {
        alert('document loaded');
        $('#left-bubble').show();
    });
}

$(document).ready(function () {
    bubbleOnLoad();
});