@iroomit/page-interaction-listener

Takes a function (or several functions) as an argument and only executes them once the user has interacted with the page via mouse, keyboard or touch.

Browse on unpkg