+ 2

How to hide JavaScript elements in source viewer.

in HTML source viewer

25th May 2017, 3:53 AM
Omm Pradhan
Omm Pradhan - avatar
5 odpowiedzi
+ 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.
25th May 2017, 4:09 AM
CHMD
CHMD - avatar
+ 3
you save it in a .js file and you include it in your page using the script tag.
25th May 2017, 2:17 PM
CHMD
CHMD - avatar
+ 2
how to use compressed file
25th May 2017, 4:10 AM
Omm Pradhan
Omm Pradhan - avatar
+ 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
25th May 2017, 4:16 AM
CHMD
CHMD - avatar
+ 2
how to use after compress
25th May 2017, 4:52 AM
Omm Pradhan
Omm Pradhan - avatar