It seems something like that Elliot.
How do you propose to solve this?
Create an event listener for wp and only after wp has been loaded execute this command?
I havent dig deep enough in your plugin so I am not really sure how it is working and when this input.min.js is called, so any help you can provide would be great.
Jorge