K
K
KBBS2019-02-05 11:51:41
Google
KBBS, 2019-02-05 11:51:41

Can there be problems with search engines if using ES6 without transpilation?

Hello colleagues.
I have not been developing websites for a very long time, I work a little in other directions. So I apologize if I'm asking banal things that are understandable to all web developers.
There was a need to modernize the site of a good friend.
I'm going to write the client part as much as possible using ES6.
Site pages are completely generated on the server. All the content that search engines need to see is immediately available after the page loads.
JS is used solely for interactivity in the natural interaction of the user with the site: show the block hidden under display: none; load the form, something else; validate the form; etc.
Well, in fact, there will be other, more complex things in JS, but what will be done in JS will not be interesting for search engines.
Support for older browser versions is not required.
Audience analysis shows that the site will work fine for the vast majority of visitors, even if you do not transpile ES6 to ES5.
I read that search engines are currently trying to execute javascript on websites. but the same GoogleBot uses Chrome41 and is not good at ES6. What is directly stated on the help page.
The immediate question is: will the use of ES6 affect the loyalty of search engines?
For example, the same GoogleBot, having entered the page, will not be able to execute JS and will be "offended"))).
Of course, you can transpile my code with the same Babel. But, as I wrote above, this, in general, is not necessary. Because users will have everything working. So why overdo it.
Only search engines are confusing.
Please give me good advice.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir, 2019-02-05
@KBBS

Google has other criteria that have a much stronger effect on indexing, (mobile first, loading speed, presence of micromarkup) in addition, Google has a great tool to see how it sees your page
https://search.google.com/search -console/
In order to evaluate the support of certain features by browsers, you can use https://caniuse.com/
Well, in the documentation, Google recommends using polyfills, for example, then native ES6 https://polyfill will work in new browsers. io/v3/api

M
Maxim Timofeev, 2019-02-05
@webinar

Everyone around uses https://babeljs.io why do you think?
To write in ES6, and give ES5 to the browser. And no problem. If you could use ES6 with impunity, you probably would.
You've described why you shouldn't use ES6 without babeljs and plan to use it anyway. Where is the logic? Where do such ideas come from? Is this something from the "what if" series?
If you don't want to use babeljs, use ES5. And by the way there, too, not 100% of users will appreciate it.

D
dev null, 2019-02-05
@curious-101

I read that search engines are currently trying to execute javascript on websites. but the same GoogleBot uses Chrome41 and is not good at ES6. What is directly stated on the help page.

If this doesn't answer the question, then I don't know how to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question