Can search engines index JavaScript generated web pages?

前端 未结 8 2187
小鲜肉
小鲜肉 2020-12-01 14:30

Can search engines such as Google index JavaScript generated web pages? When you right click and select view source in a page that is generated by JavaScript (e.g using GWT)

8条回答
  •  粉色の甜心
    2020-12-01 14:57

    There are a few ways to handle this in GWT, this is a great discussion on the subject. Seems like the best option is to serve up static SEO content when the user-agent is a bot, as long as the SEO content is identical to what is served via the GWT route. This can be a lot of work, but if you really want a fully rich GWT app that is optimized for search engines it may be worth it.

提交回复
热议问题