I am using this code to constantly refresh divs with PHP included files in:
$(document).ready(function() {
setInterval(function() {
$('#ContentLeft').load('live_stats1.php').fadeIn("slow");
$('#ContentRight').load('live_stats2.php').fadeIn("slow");
}, 2000);
});
my HTML looks like:
<div id="ContentLeft">
<?php include 'live_stats1.php'; ?>
</div>
<div id="ContentRight">
<?php include 'live_stats2.php'; ?>
</div>
When i look in the console in Google Chrome is shows the live_stat1.php and live_stats2.php pages constantly loading, will this cause problems as they are constantly refreshing and slow down the internet/use a lot of bandwidth on the internet connection it is running on?