Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MadMaks's avatar
Level 11

Prevent white flash

As i clicked through my Homepage, I noticed, that there is some kind of a white flash before the page is fully loaded. Here on Laracasts there is absolutely nothing inbetween the pageloads... It is super smooth. How can i achieve that? With best regards.

0 likes
3 replies
jlrdw's avatar

See if you have a stray echo statement somewhere.

MadMaks's avatar
Level 11

Nope, telescope says that it needs about 500ms to load a page. Is that too long? I'm running laragon from a 3.0 usb stick. Could that be the reason?

kobear's avatar

@MADMAKS - I would bet that your setup is the culprit. It also depends on what browser you are using, how complex your blade templates are (nested, inherited, etc). Here are some things that I would try.

  • Turn on browser debugging. Look at your network transmissions from the page when you do a download. Is the time to first buffer/response taking 500ms, or is there a subcomponent that is taking a long time.

  • Make sure it is not the browser: Sometimes, depending on the browser, it will turn white while it is waiting for a response from the server.

  • Try running the Laravel server on a non-USB stick setup: I bet it will run faster.

1 like

Please or to participate in this conversation.