"Fetch as Google" is showing an empty page for inline JS while page renders fine on browser

Question

I have a very simple static HTML page with just one div. I have some static data defined in <head> and want jquery to iterate over this structure and append this inside the div startHere.

<body>
    <div id='startHere'></div>
    <script>
      $("#startHere").append(<function to generate html from the data>)
    </script>
  </body>

This works well in browsers and I see the content that I want to see. However when I try to use "Fetch as Google", I see an empty page with just the header.

The status of the request is shows as completed in the google tool.

Any idea why this page shows empty?


Show source
| javascript   | jquery   | seo   | google-crawlers   | google-webmaster-tools   2016-12-14 01:12 0 Answers

Answers to &quot;Fetch as Google&quot; is showing an empty page for inline JS while page renders fine on browser ( 0 )

Leave a reply to - "Fetch as Google" is showing an empty page for inline JS while page renders fine on browser

◀ Go back