<div id="loading-bar-spinner" class="spinner"><div class="spinner-icon"></div></div>
<script type="text/javascript">
    $( "form" ).submit(function() {
        $("#loading-bar-spinner").show();
    });
</script>