execute a code after the page is loaded completely or delay the execution of the code
<pre><code>$(document).ready(function() {
    if($('#upcomeEvent').length &gt; 0)
        $('#upcomeEvent').insertAfter('#eventBanner');
});
</code></pre>

<blockquote>
  <p>execute a code after the page is loaded completely or delay the execution of the code</p>
  
  <p>I need to execute <code>$('#upcomeEvent').insertAfter('#eventBanner');</code> after the page is loaded completely
  Another requirement is to delay the execution of <code>$('#upcomeEvent').insertAfter('#eventBanner');</code> by, say around 10 seconds.
  Thanks</p>
</blockquote>
