• Hello where can i put java script in my word press document so that people can see and take my java script. Im a programmer and I just had a client steal my work. I was putting my js functions in functions.php like someone told me. All of the js just gets put straight onto the page. Does putting js in external .js files help by including them?
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Could you tell me a little more about the problem that you’re having? Are you trying to share a js file?

    Regards

    KC

    Thread Starter johnboyman

    (@johnboyman)

    Basically Im making a wp site. I put my js functions into the functions.phph file. When i deploy the site, all of the functions are just put directly onto the wp page source code so that anyone can view it with a browser and steal it. Is there any way to hide this js code. Can I hide it in a . js file and then include that code onto my site another way without people being able to steal my code of the internet?

    If someone is going to copy your JS code, it doesn’t matter where you put it. They’ll either see it in the pages HTML, or they’ll see it in the linked JS file.

    As an alternative, there are several JS minifiers and obfuscators that you can use. They are OK and will do the job, but the reduced code will still be available to anyone that views the page.

    Just to be clear, if it’s on the internet, it can (and most likely will) be copied. The only way to ensure that no one ever copies your owrk is to never publish it anywhere ever.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where to put js’ is closed to new replies.