Performance improvements to main nav menu

Prevents the ‘content jump’ at page load.