Prevent flashing when loading search page by putting the main content first in html