Improvement in rendering of main nav menu at page load

Prevents the flash of hidden menu.