title: Ajax call doesn't work when the ajax link is in the container to change
body: <p>I found a topic on my problem but there was no answer..</p>
  
  <p>I have a site with an ajax nav and it works perfectly with the principal nav but not with intern link. In fact, when the link which makes the Ajax call is in the content to be changed, it bugs (it works for the first click but not if you click on another intern link when the content is loaded). In this case, the page is reloaded...</p>
  
  <p><a href="http://miller-badger-76351.netlify.com/" rel="nofollow">http://miller-badger-76351.netlify.com/</a></p>
  
  <p>You can test it on the link, intern link is "Découvre notre agence" on the main page and "Découvrez notre offre" on the Agence page (this is a french website).</p>
  
  <pre><code>$('a[class^="link"]').on('click', function(event){
  event.preventDefault();
  _href = $(this).attr("href");
  history.pushState(null, null, _href);
  
  
  $('.content-yield').load('..' + _href + ' .contain', function(){
    window.scrollTo(0,0)   
  });   // _href is the name of the html doc, for example, for the Agence page, the load string will be     '../l'agence/ .contain' 
  </code></pre>
  
  <p>I hope that my problem is clear, I thank all of you in advance for your help =)</p>
  
  <p>Have a nice day</p>