Polyfills and browser compatibility (Affecting SEO)
See original GitHub issueDescription
I had issues getting getstorybook.io listed on Google, because it doesn’t render anything on Google’s Fetch and Render feature.
I so I dig into the issue and it was Array.find()
couldn’t find on Google’s browser env. Since Google’s Fetch and Render didn’t provide console.log output I had to debug this for more than 4 hours doing a lot of trial and error stuff.
Why?
This is happening because we don’t use babel-polyfill
or any other polyfill or shims.
What we can do?
I can understand the reason behind not using polyfills. But we should document clearly on why we do it and how to add some polyfills.
I simply added following line to src/index.js
and everything works fine.
import from 'airbnb-js-shims';
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why Your SEO Plan Needs Cross Browser Compatibility
Website owners who do not work cross browser compatibility into their SEO strategy are viewed by some of their traffic as a person...
Read more >Superfluous code - Cocolyze
Polyfills (and "transform" attributes) are good because they allow older browsers to use recent features and are therefore important for the accessibility of ......
Read more >Advanced Core Web Vitals: A Technical SEO Guide
A polyfills is a piece of code used to provide modern functionality on older browsers that do not natively support it. Now that...
Read more >Understand JavaScript SEO Basics | Google Search Central
Since some browser features cannot be polyfilled, we recommend that you check the polyfill documentation for potential limitations.
Read more >Are single page apps killing your SEO? - Harvest Digital ™
Google support and maintain AngularJS with a community of individual ... “Polyfill” is actually a browser fallback, just like a JavaScript ...
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
I use Polyfill CDN for this https://polyfill.io/v2/docs/
It’s fast and easy.
@rayshan I really hate it when people say “did not work for me”. What do you mean by it’s not working? what when wrong, …