Are javascript codes in Polymer({}) can be executed by google indexer?
because my codes to change the content of <title> and <meta> tags are in
Polymer({domReady:function()}{}).
On Friday, April 24, 2015 at 6:57:59 AM UTC+8, arthure wrote:
>
> If you're doing a one-page app like this, you can replace the contents of
> the <title> and <meta> tags when you navigate between pages.
>
> From our experience on polymer-project.org, this seems to work well. The
> Google indexer executes JavaScript. We made changes a few weeks back to
> correct the titles for the element reference pages, and have seen SEO for
> those pages increase significantly.
>
> The other fix was to a separate URL path for each page, instead of using a
> hash. So:
>
> .../elements/core-elements.html#element-name
>
> Became:
>
> .../elements/element-name.html
>
> For Google, you can use Webmaster Tools to see what pages look like to the
> indexer. I suspect other search engines have similar tools.
>
> I recommend anyone do this, whether you're using Polymer or not. In the
> case of pp.org, we found that our SEO issues were unrelated to Polymer.
>
> On Tue, Apr 21, 2015 at 3:43 AM, Peng Kim <[email protected]
> <javascript:>> wrote:
>
>> let me look into it,how it works with your site,are there any drawbacks?
>>
>> On Sunday, April 19, 2015 at 10:04:10 PM UTC+8, Kevin Ashcraft wrote:
>>>
>>> I use the history API to handle SEO for custom element "pages". Mozilla
>>> History API Doc
>>> <https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history>
>>>
>>> It does the following:
>>>
>>>
>>> - Updates the URL and browser history
>>> - Can fire a new analytics event
>>> - Updates the title in the browser history
>>>
>>> Also, my favorite part is that it creates the feel of never leaving the
>>> original page since the browser never has to reload the initial data so if
>>> you're hovering over a menu item and click, the main content can change and
>>> the url and title can change, but that menu never gets reloaded so you're
>>> still hovering over the same element.
>>>
>> Follow Polymer on Google+: plus.google.com/107187849809354688692
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Polymer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/polymer-dev/35c8ce29-5535-4935-81ab-f01c0aa230ed%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/polymer-dev/35c8ce29-5535-4935-81ab-f01c0aa230ed%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/78de93aa-546d-4744-968d-c51a781950f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.