Error in public.js in Chrome 41 –used by Googlebot web rendering service (WRS)–
-
Hi,
Currently (January 2019) Googlebot uses a web rendering service (WRS) that is based on Chrome 41 (M41), so even being an outdated browser it’s important to make sure everything works OK and that we don’t get any errors in it. As Google engineers state:
In addition to using feature detection and polyfills, be sure to collect and analyze client-side errors that may prevent your application from behaving correctly when accessed by users and Googlebot.
Testing HTML Forms in Chrome 41.0.2272.0 (64-bit) for Mac OS X I get an error in the console related to the file /assets/js/public.js:
Uncaught ReferenceError: URLSearchParams is not definedpublic.js:216 (anonymous function)public.js:265 3.i.initpublic.js:425 5../conditionality.jspublic.js:1 lpublic.js:1 opublic.js:1 (anonymous function)public.js:1 (anonymous function)
It might be related to the fact that the Googlebot WRS does not support ES6. Google engineeers recomend:
Chrome M41 does not support ES6 features (for example classes). If you are using ES6 make sure to transpile your JavaScript to ES5.
Best,
Diego
- The topic ‘Error in public.js in Chrome 41 –used by Googlebot web rendering service (WRS)–’ is closed to new replies.