Basically the question is when does an included .js script file get read? Is it after the server is done processing php? Is it requested by the browser or the server?

Basically what I am looking to do is make a bunch of database information available to javascript in the form of arrays. These arrays would be defined by php while the server is making the html file. If this script was all inline it would make copying and pasting all that data easy for anyone else, and I would rather not give away all that info.

So I thought I could have php access the database, make a something.js file with all the array declarations, and then include that file instead. Would that obfuscate the values? Would it even work?