566 posts
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
radykal says

Hi,

I notice a white page for a short time when browsing through a wp theme. I checked other wp themes and they dont have this “issue”. Someone told me that this can be fixed with CSS or php, I dont know. I already google it, but only found the “Blank screen of death” issue.

So how can I avoid that the page goes white for a short time when requesting a new page in a wp theme?

3058 posts
  • Located in Australia
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker Volunteer moderator says

Sounds to me like it’s trying to request a big javascript file or something from a different domain.

eg: if you’re request google jquery your browser has to look up the address for that host, download the file, and then continue rendering the page.

A few suggestions are to make sure all your css and script references are inside the <head> tag at the top of the page. If that doesn’t fix it open up the problematic page and “view source”. Browse through to see if you have any <script> bits that are not in the <head> tag (eg: from a plugin). If that still doesn’t fix it then you can try moving any external script references (eg: google jquery) to the bottom of your website just before the end body tag.

745 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+6 more
LCweb says

I suggest to use the “NET” functionality of the firebug plugin in Firefox. It shows up how much time every element on the page takes to load completely.

566 posts
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
radykal says

Ok I think now its working. I just installed the WP Super Cache plugin, I think its doing the job.

745 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+6 more
LCweb says

Ok I think now its working. I just installed the WP Super Cache plugin, I think its doing the job.

It’s a nice plugin, but only put a patch on the problem and each time you make any change to your website the plugin cache must be refreshed. Mainly because of old-contents were displayed I had to disable it on a website months ago.

It can fit temporarily, but to completely avoid problems i suggest to solve them by fixing the files loading time. ;)

1711 posts Time is what you desire most, but waste carelessly.
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+6 more
Firsh says

It’s also dependant on the browser. And you might be far from your webhost. You can test speeds here: http://www.webpagetest.org/

566 posts
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
radykal says


Ok I think now its working. I just installed the WP Super Cache plugin, I think its doing the job.

It’s a nice plugin, but only put a patch on the problem and each time you make any change to your website the plugin cache must be refreshed. Mainly because of old-contents were displayed I had to disable it on a website months ago.

It can fit temporarily, but to completely avoid problems i suggest to solve them by fixing the files loading time. ;)

Yes you were true….. I had to disabled it again, because new content did not displayed on my site.

1711 posts Time is what you desire most, but waste carelessly.
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+6 more
Firsh says

Put JS in the bottom. If it’s in the head and slows down page load you’ll get the white flash. Only the CSS in the head then let the document flow in. Also make sure you make a use of caching then it’ll be near instant for the page loads after the first one.

by
by
by
by
by
by