Why would you want to do it?How can i decrease a 300 character Javascript File to 50 character with no effect lose ?
Post the code hereHow can i decrease a 300 character Javascript File to 50 character with no effect lose ?
i cant tell because i dont know too my friend ask it to me and i am trying to find solution.Why would you want to do it?
i dont have code i just need to know how to do it sorry .Post the code here
i cant call with script src.we cant use these method.thanks for trying to helphost it remotely call it on the website you want with script src=
Javascript minifiers did work thank you . i solved my problemHey there,
It'd be a hard thing to tell because It all depends on your JavaScript source:
- Take a look at online JavaScript minifiers.
- Shorten variable names, remove empty lines and characters.
- If it contains a library in it, move the library to another file (maybe call it as vendor.js) and load it using another script tag:
It helps browser to cache libraries (like jQuery) which I don't think you'd upgrade it every day.- (I don't completely remember this so use it and answer if it doesn't work) Use eval and hex representation of your script.
Javascript minifiers did work thank you . i solved my problemTry to minify your js file. Search for "minify javascript online"