var src = "https://www.paypal.com/sdk/js?currency=SEK&client-id=AdBk-amqc9pa7JJaU29sg8KC0U14Fmw7rzYgeNrlo5rL4-kNQYXtySZfJC0l0KXMHSQcAACVr0fy0GKE&components=messages"; if(!document.querySelector('script[src="' + src + '"]')) { var script = document.createElement("script"); script.type = "text/javascript"; script.id = "paypal-installment-banner"; script.src = src; script.rel = "preload"; document.body.appendChild(script); }