javascript_include_tag('jquery.js', 'app.js', :use_head_loader => true) will result in:
<script src="/javascripts/head.load.min.js?1292496592" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
head.js('/javascripts/jquery.js?1277379629', '/javascripts/app.js?1291631927');
//]]>
</script>
javascript_include_tag('jquery.js', 'app.js', :use_head_loader => 'my_custom_name_head.load.min.js') will result in:
<script src="/javascripts/my_custom_name_head.load.min.js?1292496592" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
head.js('/javascripts/jquery.js?1277379629', '/javascripts/app.js?1291631927');
//]]>
</script>
javascript_include_tag('jquery.js') javascript_include_tag('app.js') will result in (head.js only included once):
<script src="/javascripts/head.load.min.js?1292496592" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
head.js('/javascripts/jquery.js?1277379629');
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
head.js('/javascripts/app.js?1291631927');
//]]>
</script>