title: Liferay 6.0.5 - Including common javascript at the end of all portlets, before scripts?
body: <p>I'd like to load all my javascript at the bottom of each page, but in liferay, I'm limited to <code>&lt;header-portlet-javascript&gt;</code>, which places the javascript in the header.</p>
  
  <p>If I include the JS manually at the bottom of each relevant JSP, I wind up duplicating a number of <code>&lt;script&gt;</code> includes.</p>
  
  <p>What's the best way to achieve what I need? I have a number of portlets that all require the same set of javascript libraries, some of which are large, and I'm targetting mobile devices, so every byte counts.</p>