Fixes mobile nav flash on page load