0

I am trying to implement a .js file with encoding (the way google writing ga.js file, or similarly formatted js code)

But, no luck. Can anybody give me suggestions on how to go ahead with this?

(or)

How do I write obfuscated JavaScript / what are the best free tools in online to make a .js file like this?

Arjun
  • 533
  • 2
  • 9
  • 23

3 Answers3

2

I guess you can do it with something like this : http://refresh-sf.com/yui/ ?

enguerranws
  • 8,087
  • 8
  • 49
  • 97
2

I'm assuming you want to achieve JavaScript that looks like this:

enter image description here

You're looking for a packer and minifier. See:

zamnuts
  • 9,492
  • 3
  • 39
  • 46
1

You can choose to do it manually with tools mentioned previously, or decide to automate the process with tools such as YUI Compressor which are server side solutions

steven_ght
  • 66
  • 5