Looking to trigger a function only on the initial interaction with the DOM. Are there any vanilla JavaScript options available?
I've brainstormed this approach. Is it on track?
window.addEventListener("click", function onFirstTouch() {
console.log("function called");
window.removeEventListener("click", onFirstTouch, false);
}, false);