<script type="text/javascript">
$(function(){
$('script[type="text/javascript/defer"]').each(function(){
$(this).clone().attr('type', '').insertAfter(this);
});
});
</script>
A simple way to use inline JavaScript and also defer its execution until all dependencies are loaded.