I have SHTML files which I'd like to implement the following:
-
Step 1: Let's say I have a SHTML page which displays "You must have Javascript turned on to view this content" by default / in a
<noscript>
tag.
The exact implementation of the next step doesn't really matter.
-
Step 2: Then on page load, the JS requests a PHP script returns either:
- 1 / 0 (in plain text) and depending on the result the JS either prints the intended content or a captcha form.
OR - the intended content or a captcha form, and the JS prints it.
- 1 / 0 (in plain text) and depending on the result the JS either prints the intended content or a captcha form.
The main thing to take from this is that the content is printed by JavaScript. Will Google still index the pages just as before (including the content)? Will I need to add anymore code/directives? Will Google index just as often, etc.?
NOTE: Content will always be printed for Google. (No Captcha)