connectivity Error, How to minimize it. I use share-hosting for my web

29 views Asked by At

I find google bots cannot reach my web. In google webmaster tools, it said Truncated Response. I try to find reference in google about this but no other alternatives way to handle it. Then I try use ajax to load my part of web (content.php). I found this script in w3school:

<script>
$(document).ready(function(){
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","content.php",true);
xmlhttp.send();
});
</script>

content.php contains to display article from database. I dont have some $ to buy dedicated server. please let me know how to minimize if you have other method.

0

There are 0 answers