title: Set dynamic Meta Tags and Open Graph tags using jQuery
body: <p>I'm trying to add dynamic tags using jQuery but it seems not to work. I load my script directly after loading the page.</p>
  
  <p>This is my <code>HTML</code></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;script type="text/javascript" src="script.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is how I add the tags on jQuery.</p>
  
  <pre><code>$(function() {
        $('head').append('&lt;meta property="og:type" content="profile"/&gt;'); 
        $('head').append('&lt;meta property="og:url" content=""/&gt;');
        $('head').append("&lt;meta property='og:title' content="+text+"'/&gt;");
        $('head').append("&lt;meta property='og:image' content="+imageUrl+"'/&gt;");
    });
  </code></pre>
  
  <p>Why I'm doing this? After the user is visiting the page <code>example.com/?link=HDI635</code>
  I would like to present a small overview of the content. So I make a API call using <code>jQuery</code> after that I would like to add the values from the API response to the Open Graph tags.</p>