Not possible to queue js files in the footer?

Is it really not possible to use queue_js_file() or something similar to add javascript files to the footer? I can't find any information on putting JS files in the anywhere but the header, other than hard coding a a link to my script file, which seems weird, given that it's a common best practice to put non vital JS files before the closing <body> tag.

I just found the answer:


In my case I wanted to add this script: themes/mytheme/javascripts/globals.js, so I put this tag before the closing </body> tag in /common/footer.php:

<?php echo js_tag('globals'); ?>