Website flashes and then goes blank

They have: 3 posts

Joined: Jul 2013

I apologize ahead if this is the wrong forum for this help.
My website (an add-on) is experiencing a problem in all browsers and my web-host has thus far been unhelpful. When anyone goes to the site, either by link or directly, the page flashes and then the screen goes white. So you see a glimpse of the loaded page and then nothing. No error message, nothing just white. Have you any idea what could be causing it? All the pages in this website are doing it.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

So you fixed it? I checked it earlier and saw what was happening. Looked like some sort of JavaScript gone wrong.

What turned out to be the problem?

They have: 3 posts

Joined: Jul 2013

Yes Megan - it's fixed but I had to get rid of my Facebook Like button and the script for that. I didn't want to but it was the only way to stop the problem. At least I hope it is solved.
I found the issue, it is a script calling out to facebook:

(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

I wish I knew why it was doing this as I copied the script from FB just as it was given.

Thank you for asking.
Chris

They have: 3 posts

Joined: Jul 2013

Xamit - I think you may have misunderstood the problem and the fix. My website was literally flashing - or rather, appearing for a microsecond and disappearing. The page would just show blank white after the initial "flash." I don't have any flash images. In fact, I'm such an amateur, I don't have a clue how to "build in flash" or what that even means.
No, the problem was solved by removing the Facebook script (see above post), which I had downloaded from Facebook and placed in my HTML in order to add a Facebook Like button to my website. I can't remember where I read it, but others were having a similar problem with their websites and said to remove the script. Funny thing is, the script worked initially and then caused a problem later.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.