Currently I use this...
setInterval(function() {
$.ajax({
url: 'data.php',
success: function(data) { document.title = data;},
dataType: 'text'
});
}, 15000);
But it seems to slow down the server due to the amount of queries to the server.
Is there another way of displaying the amount of unread messages in the title bar, without the overload?
These solutions come to my mind: