2
So guys.. I know the code below is pretty unnecessary, but I just need to know one thing, actually an answer...
The code below on my website serves to keep doing refresh an update icon where the number of notifications is displayed if a friendly user likes or comments something from you, such as Facebook. But I believe that each refresh this opening another door, because in the statistics of website shows that this having 1900000 views per day which ends up increasing the traffic of website stopping the server.
So the question: this setInterval()
with a load()
searching in the archive refresh_notif.php
each refresh in half-second time '1000', it is bad for the website?
var auto_refresh = setInterval(
function () {
var urlLikes = $("#url_s").val();
$('#4sNotificationsJewel').load(urlLikes +'/refresh_notif.php?user=<?php print $user_id; ?>').fadeIn("slow");
}, 1000);
Interesting script. I hadn’t thought of it that way .. I’m going to study the subject... Vlwuuu
– Pedro Quezado