title: Load one control after another in aspx page
body: <p>I have a certain asp.net page where I am loading the content into a  using a javascript.
  Basically it is like loading a content from a third party.</p>
  
  <p>And I have an image which should be loaded after the javascript generates the content in </p>
  
  <p>But currently what happens is the image is showing before the content is loaded into div, which is bit in appropriate. Could you please suggest me a method to do the other way around.</p>
  
  <p>I have put a code sample with this.</p>
  
  <p>In aspx page.</p>
  
  <pre><code>&lt;body&gt; &lt;div id="bodyDiv" runat="server"&gt;
  &lt;script src="//platform.linkedin.com/in.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="IN/CompanyProfile" data-id="xxxxx" data-format="inline"&gt;&lt;/script&gt;
  &lt;a  id="closeLink" href="http://www.xyz.com" class="closedbutton" runat="server"&gt;  &lt;img id="closeImg" runat="server" src="images/remove.png"  /&gt;&lt;/a&gt;
  &lt;/div&gt;&lt;/body&gt;
  </code></pre>
  
  <p>What method should I use to load the image after the content from javascript is loaded.</p>
  
  <p>Thanks !</p>