+ 2
How to hide JavaScript elements in source viewer.
in HTML source viewer
5 Respostas
+ 3
You cannot really hide JavaScript. You may compress your files to make it a tad bit harder for people to read or even obfuscate it, but there'll always be room for reverse-engineering.
+ 3
you save it in a .js file and you include it in your page using the script tag.
+ 2
how to use compressed file
+ 2
you can use UglifyJs
https://github.com/mishoo/UglifyJS
Or you can direcly use an online tool(which is based on UglifyJs):
https://jscompress.com
+ 2
how to use after compress