- Author was Featured
- Bought between 10 and 49 items
- Contributed a Blog Post
- Exclusive Author
- Germany
- Has been a member for 3-4 years
- Item was Featured
- Referred between 100 and 199 users
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?
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Contributed a Blog Post
- Author was Featured
- Item was Featured
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Has been a member for 4-5 years
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.
- Sold between 100 000 and 250 000 dollars
- Author was Featured
- Item was Featured
- Most Wanted Bounty Winner
- Bought between 10 and 49 items
- Exclusive Author
- Referred between 10 and 49 users
- Has been a member for 2-3 years
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.
- Author was Featured
- Bought between 10 and 49 items
- Contributed a Blog Post
- Exclusive Author
- Germany
- Has been a member for 3-4 years
- Item was Featured
- Referred between 100 and 199 users
Ok I think now its working. I just installed the WP Super Cache plugin, I think its doing the job.
- Sold between 100 000 and 250 000 dollars
- Author was Featured
- Item was Featured
- Most Wanted Bounty Winner
- Bought between 10 and 49 items
- Exclusive Author
- Referred between 10 and 49 users
- Has been a member for 2-3 years
radykal said
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. 
It’s also dependant on the browser. And you might be far from your webhost. You can test speeds here: http://www.webpagetest.org/
- Author was Featured
- Bought between 10 and 49 items
- Contributed a Blog Post
- Exclusive Author
- Germany
- Has been a member for 3-4 years
- Item was Featured
- Referred between 100 and 199 users
LCweb said
radykal said
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.
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.
