Minimizing the nav tabs flickering

This is not a complete fix (which would include serverside processing of
cookie information) but it reduces the onload flickering of the
navigation to a minimum.

Change-Id: Ie8453a2a69670eb5f1adde23c63e35781ee92356