I'm echoing a variable that adds my links (outputting a number) and totaling them. Since it's PHP it loads first and makes my site wait until finished loading. Can this be written in jQuery? I'm very new to JavaScript.
<?php
$a = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.batterytheme&output=number');
$a = str_replace(",", "", $a);
$b = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.connectiontheme&output=number');
$b = str_replace(",", "", $b);
$c = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.icontheme&output=number');
$c = str_replace(",", "", $c);
$d = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.percenttheme&output=number');
$d = str_replace(",", "", $d);
$e = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.statusnotifiertheme&output=number');
$e = str_replace(",", "", $e);
$f = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.cnote&output=number');
$f = str_replace(",", "", $f);
$g = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.iaccescnotekb&output=number');
$g = str_replace(",", "", $g);
$h = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.cnotelite&output=number');
$h = str_replace(",", "", $h);
$i = (301); //From c-note and Multi Lock Screen Theme on Rock Your Phone
$j = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.multibrowsericon&output=number');
$j = str_replace(",", "", $j);
$k = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.changeappstoreiconwithinstallous&output=number');
$k = str_replace(",", "", $j);
$z = $a+$b+$c+$d+$e+$f+$g+$h+$i+$j+$k;
$z = number_format($z);
echo $z;
?>