D
D
DevStranger2018-09-10 17:13:45
JavaScript
DevStranger, 2018-09-10 17:13:45

Yandex block "Share" and Google Recaptcha, why the conflict?

Good afternoon! When both scripts are connected on the same page, the Yandex script generates a null exception (see screenshot). Both scripts are connected correctly, according to the instructions, both are asynchronous, both work fine. Can anyone come across? Thank you.
5b967bea0a8bf974853359.jpeg
Here is an example:
https://jsfiddle.net/hy903ujm/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Varlamov, 2018-09-11
@bes_internal

Apparently, in some of the scripts, the variable is reused (although everything seems to be isolated at first glance) and they intersect when called. But I tried to delay the loading of one of the scripts and they worked. The delay time should be chosen imitatively, taking into account the download speed on a slow connection and execution on slow hardware
https://jsfiddle.net/hy903ujm/9/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question