-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Default browserslist should include Googlebot (Chrome 41) #6271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure if CRA apps are meant to be crawled |
@miraage What has led to that conclusion / suspicion? Think for a web application being discoverable on the web is critical; otherwise expect that to be explicitly stated (e.g., use this for intranet applications). |
You can use 'Fetch as Google' to see how your site looks to Googlebot I've tried this on a site build with react-scripts and it looks fine They are phasing this tool out, apparently the new one is |
@Bazzer588 Ah, good to know that has changed. Upgraded to the latest tools a while back and had to downgrade because 'Fetch as Google' no longer worked. May be true that out of the box 'Fetch as Google' works, however this may not be the case if code is added using some of the latest javascript features because it's not polyfilled down to Chrome 41. |
The new one works too - https://search.google.com/search-console - and it's actually better browserlist is defined as
|
Interesting. And thanks for the assistance @Bazzer588. Would someone like to create a PR for this? If there aren't any major negative impacts, we should be able to merge this in. |
I can work on it |
See my comment over at #6345 (comment). We could change |
@saranshkataria issue target was Chrome 41 (googlebot), Bazzer mentioned IE 11 because that was a requirement for his project. Sounds like from @ianschmitz comments in the pull request that IE11 is already covered by targeting down to IE9?
Interesting to find out that browserslist is only for CSS and not JavaScript, opened the issue with the misunderstanding that browserslist affected JavaScript too. In light of that not being the case maybe this should be closed? How do we know which browsers CRA targets for JavaScript (maybe missed this in the documentation? Pretty sure it's not mentioned in the browserslist terminal dialog [that browserslist is only for CSS]). Also curious about the value in targeting CSS to a particular browser version if the project does not target JavaScript at that version too. Could end up in a scenario where the CSS works and JavaScript does not. As is, if I'm understanding correctly, there is a floor on what browsers are supported based on what is configured for the JavaScript and browserslist should never target below what browsers are targeted for the JavaScript. Which leads me to the conclusion that browserslist should be internalized unless it also affects JavaScript too. However, since there seems to be a marked shift to more configurability and broader support, would think going the other way would be better and browserslist would affect both CSS && JavaScript (thinking out loud). In a nutshell, CSS and JavaScript browser targeting should be the same. Does not make sense that one would work and the other would not. |
@buildbreakdo agreed that the same browserslist should be used for both of them. Also, I am not sure what CSS specific features change with browsers? @ianschmitz could you shed some light on that as well, please? |
Closing this as browserslist now affects javascript output as of 3.0. Users can fine tune their supported browsers assuming they include the appropriate polyfills. |
Googlebot is based on Chrome 41 and should be included in the default browserslist in package.json:
Source: https://developers.google.com/search/docs/guides/rendering
The text was updated successfully, but these errors were encountered: