Index page flashes when i refresh/reload other pages

How do I avoid the home page loading before loading any other page when i refresh my browser tab.

Do you have pushState enabled? If yes, and you see home page then i guess it is in your index.html, you need to move home page to route

I’ve done that but I get this 404 http response from routes file.

However when the page is nested the .view-main class it works,but in a separate route file, I get 404 resp.