Googlebot doesn't get Object.assign polyfilled
See original GitHub issueI ran into this issue that my React app wasn’t being rendered by Googlebot. By using Fetch as Google, I tracked it down to Object.assign
not being available in Googlebot, even though I’m using the following polyfill:
https://cdn.polyfill.io/v2/polyfill.min.js?features=default
I tested this with the following code:
<h1>At what point do you stop working, Google?</h1>
{Object.assign && 'We have object.assign! :)'}
{!Object.assign && 'No object.assign available! :('}
Which renders the following in Fetch as Google:
Note that the left says “No object.assign available! 😦”.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Object.assign() in IE11 with Angular2 - Stack Overflow
This is what my polyfills. None seems to help and I keep getting Object doesn't support property or method 'assign' in IE11.
Read more >Googlebot is the new IE - Medium
I learn that googlebot is using chrome 41 for rendering websites and if it encounters not supported syntax without polyfill it won't render ......
Read more >Polyfill service
UA detected: googlebot/2.1.0 (unknown/unsupported; using policy `unknown=ignore`) ... Object.assign, License: CC0 (required by "default") * - Object.
Read more >polyfills.js - DAU
node_modules/core-js/modules/_object-assign.js","webpack:///./node_modules/core-js/modules/_object-create.js","webpack:///.
Read more >How to load polyfills to handle Web Components?
Tagged with webcomponents, javascript, polyfills, frontend. ... OBJECTS. 'assign' in Object &&. 'entries' in Object &&.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@williamoliveira We alias Googlebot to Chrome 41 😃 – https://github.com/Financial-Times/polyfill-service/blob/8ae2f6fa5b1a169aab01cad3b88bd577d67f8294/packages/polyfill-library/lib/UA.js#L145
Currently we don’t support Googlebot as a browser family. We still recommend using the
unknown=polyfill
config parameter if you want to polyfill for search crawlers. We would welcome any efforts to either add and maintain a googlebot browser family, or create aliases to the appropriate versions of chrome or webkit. However, I’m aware that Google doesn’t publicly disclose which browser engine version is used by Googlebot, so it is kinda hard to do that.