Case 1, 2 are not the way I want to choose.
It have to rewrite code everywhere I want to use.
I'am trying to centralize code into global preloaded script.
I don't understand Case 3 solution. What's the meaning of "Use the parameters to pass through the necessary globals"? Can you explain it in more detail?