I want to run this once as scroll happen first time , is there any way to implement this
document.addEventListener('scroll', ()=>{
// add script to connect with instgram API
const script = document.createElement("script");
script.setAttribute("src", "https://apps.elfsight.com/.js");
document.body.appendChild(script);
})