Hi again.
I have this piece of script:
$(document).ready(function(){
$('.m_nav a').click(function(){
$('.marken-box').animate({
scrollTop: $( $.attr(this, 'href') ).offset().top
}, 300);
return false;
});
});
And the question is very simple: in terms of performance, which would be the best solution? pasting it at the bottom of the page or creating a file and linking to it:?
<script src="js/the-script.js"></script>
This code is going to be used by many pages, but it is so light…