title: Load partial content with javascript
body: <p>So, now I want to load a page layout and then load the content using AJAX. I am using Mootools <code>Request.HTML</code> as it parses the HTML response. The thing here is the javascript content in the page, the inline javascript always executes immediately, however, the external javascript is not executed (evaluated).</p>
  
  <p>For the purpose of testing this, I create an inline script which updates a <code>&lt;span&gt;</code> with the current date, then I created an external file with similar contents (this one was to update other <code>&lt;span&gt;</code>). This first one (inline) executes as the content is loaded, the second one (external) is not executed.</p>
  
  <p>For the ones who want to know what I am planing to do with this: I will use the new HTML5 <code>history.pushState</code> + AJAX to load a page partially, in a way it loads faster to the user and relief the server a little bit (as it will provide less requests).</p>