I was working on a feature for Arturo to add (or enqueue) a script only if a certain function was used on a page. The problem was, that you can’t…