+ 1
How to call the external script on scroll only?
I don't want to load js script until user scroll or mouseover. How is that possible? For example https://google.com/my.js I want to load that script only on scroll to improve performance.
1 Answer
+ 2
put the importing script tag just before </body>