question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Polyfills and browser compatibility (Affecting SEO)

See original GitHub issue

Description

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:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
thangngoc89commented, Sep 25, 2016

I use Polyfill CDN for this https://polyfill.io/v2/docs/

It’s fast and easy.

0reactions
thangngoc89commented, Jun 28, 2018

@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, …

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found