Prevent flash on first load

The dev branch has an even worse flash on load. I wonder if there's a better fix. In theory the site is static so possibly the menus could be generated in advance to eliminate the strange layout issues on load.