html - Can search engines index JavaScript generated web pages? -


Can Google index generate javascript generated web pages such as engines? When you right click and select View source in a page, which is generated by Javascript (for example, use GWT), you do not see dynamically-generated HTML I think there is an index for that Not much if a search engine can not even see created HTML, right?

After

Your suspicion is correct - the JS generated content can not be trusted so that search bots Be visible to It can not even be seen by anyone with JS - and, last time I added some tests for a site I was working on (which is a large, mainstream audience site per month thousands of unique visitors With hundreds of), nearly 10% users were not running JavaScript in any form, this is the reason why search bots, JS disabled, PC browsers with many mobile phones, blind people Including the reinreaders ... etc etc are also included.

This is a really bad idea why content originated through JS (with no fallback option).

Back to the Basics First, use your site bare-bones (x) html , on the principles like the rest (at least for state changes To the extent required by the request). Forget about simple semantic markup, and css and javascript.

The phase one is correct, and its entire site (or as much as in the sense of) is to work well for search bots and links as well as user agents

then Add View Layer :. Media for CSS / Graphics / Visual Polishing, but do not significantly change your original (X) HTML markup; Basic Text Only Allow the site to be intact and functional Keep your markup clean!

The third one is to add a behavior layer : JavaScript (Ajax). Offer things that perform fast, smooth, good for users / browsers with Ajax-enabled JS ... but only those users The user is still welcome without JavaScript; And so are search bots, visually impaired, many mobile phones, etc.

It is called progressive growth in web design circles . Do this and your site works in some reasonable way for everyone.


Comments