Generated May-06 15:13:40 GMT

You are not logged in.

Name: Password:

Or: Recover Account (Forgotten Password) / Register new user / Re-send validation email / Main Page


Website Discussion, Bug Reports and Abuse Reports

My game page is changing to blue during my moves

This thread is open.

Posted by renegade 2010-03-05 21:02:30 GMT

I have checked the user option to "Check with the site every 5 seconds while you are viewing a game page, to see if new moves have been made". This feature changes the screen background to blue when another player makes a move, but should not change the screen during my own moves.

Something most have recently changed so that this feature is not working properly.

Posted by randomuser 2010-03-06 07:12:05 GMT

Yeah this is happening to me too. It looks like after you take an action, the background will start to turn blue. I've found that if I hit reload though, it fixes itself (I think).

Posted by jmucchiello 2010-03-06 09:54:28 GMT

It happens to me on any game page. 5 seconds after the page loads, it turns blue.

Posted by Hammerite This user is an administrator. 2010-03-06 14:22:54 GMT

Sorry about the erratic behaviour. I'm trying to mess around with some simple ajax, but without fully understanding what I'm doing. Is it still doing it wrong at the moment?

Posted by jmucchiello 2010-03-06 16:42:14 GMT

Okay I just took my turn in a game and the page was blue during my turn. After submitting my last move, when the screen refreshed the background turned blue a few seconds later even though it was no longer my turn. But after going to the main page and then back into the same game it no longer turns blue.

Posted by gische 2010-03-06 18:26:54 GMT

I'm seeing the same behavior. It's not interfering with my ability to make moves, it is just odd.

Posted by Hammerite This user is an administrator. 2010-03-06 19:39:21 GMT

The only thing I can think of is that your browser might be looking at a cached copy of the page it is supposed to be reading, when a more up-to-date version might be available. Therefore if you return to the page after some moves have been made, your browser notices that the number of moves stored in its cached copy of the page is less than the number it's been told to expect.

To test this idea, I have changed the JavaScript code to put a > (is greater than) in place of an != (is not equal to). If this makes a difference, it suggests that inappropriate browser caching is the cause of the problem. If it does not make a difference, I'll have to go away and think of what else it might be.

Posted by renegade 2010-03-06 20:23:53 GMT


The blue screen behavior is recent and seems to be happening for many people. I thought you initially believed the odd behavior was related to some ajax code you added. Now, are you backing off that theory and suggesting that all of our browsers somehow have changed in the last few days? Or are you suggesting that our browser settings are not compatible with the ajax code changes you made?

Thanks for your help.

Posted by Hammerite This user is an administrator. 2010-03-06 20:34:21 GMT

No no, sorry - I have fiddled around in the last couple of days with the way the board page detects new moves. It was working before that, but my host mentioned that having it check every 5 seconds put a lot of strain on the server, probably because each check involved a database connection. So I have rigged up a different system, which is evidently having some teething troubles, and I'm trying to find out the reason for these. I currently want to test the theory that some users' browsers are relying on cached copies of files, when in fact they need to update those files.

Previously the board page contained JavaScript causing it to load a PHP script every few seconds. Now there is much the same code there, but it is checking a small .txt file instead. Browsers might be more likely to rely on caches for .txt files than they are for scripts.

Posted by randomuser 2010-03-07 04:11:23 GMT

I'm not sure if you have thought about and discarded this idea, but if not, I know a lot of networking sites which do a lot of checking do it in a decaying manner.

Here is an example of one way decay could work:

First the first 5 minutes, it checks every 5 seconds
After that, for the next 10 minutes, it checks every 10 seconds
After that for the next 45 minutes, it checks every 30 seconds
After that, it checks every 60 seconds

The reason some people like this is because the time where timeliness matters the most is when there is lots of action happening. The longer the timespan where there is no change, the less likely, the the less important, adding another 10, 15, or even 60 seconds matters.

Small changes can add up to a lot of load change, obviously. Simply changing from 5 seconds to 10 seconds would halve the load, etc.

Again, apologies if you have already thought about and decided not to use this.

Posted by Hammerite This user is an administrator. 2010-03-08 15:41:13 GMT

That's a good idea randomuser, I hadn't come across that. I'll look into implementing it.

For the moment - are you still experiencing the page-turning-blue thing after the most recent changes I made?

Posted by renegade 2010-03-08 22:38:55 GMT

Looks like you fixed it. Thanks.

Posted by renegade 2013-02-21 17:52:32 GMT


After a three year absence, it appears the blue screen bug has resurfaced. Has some code recently changed?

Posted by Bass This user is a supporter of the site. 2013-02-22 07:42:34 GMT

I tested this on my games, with osx+safari, linux+firefox and with the android default browser, and the blue screen consistently appears even though no move was made. In each case I verified from the game log that nothing had really happened.

Posted by Mark Geary 2013-02-23 13:02:16 GMT

It's happening to me with both Mac OS X 10.7 + Safari 6.0.2 and Mac OS X 10.6 + Firefox 19.0.

Posted by StephenV 2013-02-25 14:03:15 GMT

For me it's turning blue if I'm the last one who made a move (and the game is still ongoing).

I'm using Windows 7 with Firefox 19.0.

Posted by StephenV 2013-02-25 16:07:14 GMT

Check that: I'm getting the blue screen in a game in which I'm not the last to take an action, but I am the last to do something other than take a loan.

Posted by Dvd Avins 2013-06-01 03:47:04 GMT

I'm getting blue several seconds after loading the page almost every time. But with my current game and with my previous one.

It might well be quicker to link to JQuery and read the small portion of the doc you'd need than to debug the current code. CSS with JQuery is like magic compared to having to write browser-specific Javascript. But if you want to know, I'm running the current version of Chrome on Windows 7 64-bit.

You must log on in order to post messages.

Click here to return to the Board Page, or here to return to the Main Page.