$('section').urlive({ callbacks:{ onStart: function(){ $('.loading').show(); }, onLoadEnd: function(){ $('.loading').hide(); } } });
<section> Have you ever loved something so much it hurt? — http://www.theverge.com/2014/1/21/5307992/inside-the-mind-of-a-fanboy </section> <div class="urlive-container"> <span class="loading">Loading...</span> </div>
body { font-family:'Segoe UI', 'Open Sans', sans-serif; max-width:420px; } .urlive-container { margin-top:15px; } .loading { display:none; }