yodam1
This is correct snippet to add that code:
<script>
jQuery(document).ready(function( $ ) {
jQuery( "#t3-mainnav a" ).click(function() {
Pace.restart();
});
});
</script>
If putting it into After < head> section caused error, you can put it into Before </ head> section.
But the main thing is that the code you added does nothing, not sure where you take this code from, pls ask support from there.