title: Include JavaScript file in partial views
body: <p>I am wondering what the best practice is for including javascript files inside partial views. Once rendered this will end up as a js include tag in the middle of my page's html. From my point of view this isn't a nice way of doing this. They belong in the head tag and as such should not prevent the browser from rendering the html in one go.</p>
  
  <p><strong>An example:</strong>
  I am using a jquery picturegallery plugin inside a 'PictureGallery' partial view as this partial view will be used on several pages. This plugin only needs to be loaded when this view is used and <strong>I don't want to have to need to know which plugins each partial view is using...</strong></p>
  
  <p>Thanks for your answers.</p>