Navbar primary transition bug

Hey guys,
I have a pretty simple scenario - page with navbar blue header and page with two lines of header (again blue), but when I am switching this pages there is first some kind of white background.
The transition is blue background -> change to white background -> push the new page -> change to blue. How I can change it?
And also the transition is not smooth

Please provide some code that will reproduce the problem.