isMapAdded
:)var isMapAdded = false;
$(window).scroll(function () {
var el = $('.map');
if ($(this).scrollTop() > el.offset().top - 800) {
if(isMapAdded) return;
isMapAdded = true;
var script = document.createElement('script');
script.src = "https://api-maps.yandex.ru/services/constructor/1....";
el.append(script);
};
});