ariya/phantomjs — comment on commit e88e008ecf742f705feba07fa9ada3d21f802c82
File: src/utils.cpp line 116
By detro:

So, what I would have done is to add a String property, not a boolean.

In that string, we could pass "__run()" to cover this need. In other words, it would be like:
1) load a script in a given frame
2) once loaded, start the script with "__run()" (or whatever string of js you want to run)