 <p>I went with this:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { $("#banner").load("banner.html"); $('body').css("padding-top", "50px"); $.ajax({ url : "/auth/rest/user/fullname", cache : false }).done(function(html) { $('#fullname').html(html); }); }); &lt;/script&gt; </code></pre>