Hello!
I have a project where I work a lot with JavaScript on the UI. I saw that Google and all other big sites obfuscate there javascript.
This code
function showMessage( message )
{
alert(message);
}
showMessage('Hello!');
will be after the obfuscation this code
function a(b){alert(b);}a('Hello!');
Should I obfuscate my JavaScript too? And what are the reasons to do that? Security, Performance or both?
And when I should obfuscate my JavaScript how I do it right?
Thanks!
Eox
PS: Sorry for my skills in english ![]()











