---- Is Googlebot indexing content loaded via JS lazy load?
aakk9999 - 10:50 pm on Aug 22, 2013 (gmt 0)
I think that what you are trying to achieve is what hash bang is for. However, Google instructions [developers.google.com...] also have a section "Handle pages without hash fragments"
In order to make pages without hash fragments crawlable, you include a special meta tag in the head of the HTML of your page. The meta tag takes the following form: <meta name="fragment" content="!">
I am not an expert here, but from what I can understand, in the above case Googlebot will request the page with
This would mean that the full big page would only go to Googlebot, and the users (mobile phone and desktop) would only get the part of the page before lazy load triggered js was executed.
So in essence, if the pageA has lazy load partB, then:
Browsers, that is, mobile/desktop users They request www.example.com/pageA and upon hitting the bottom of the page, lazy load js requests partB and loads it onto the pageA.
Googlebot Providing there is <meta name="fragment" content="!"> on the pageA, then Googlebot will request www.example.com/pageA?_escaped_fragment_=
The script generating pageA should look for parameter _escaped_fragment_ and if exists, it should generate HTML that contains pageA + partB and send this back to the Googlebot. or if pageA has more parts, then server site you would generate ALL parts and pass them back in HTML to Googlebot when url with this parameter is received
At least this is what my understanding of this method is, which I believe may give you exactly what you want.