On-demand your script if you dare

When you don’t need a script until something happens in your app, don’t load one.

This is especially true for third party scripts.

I do this with eventListeners but I’m curious to hear what others think.