One method is to minify your code. Keep the source and share minified version of code. There are many online tools available to minify the code. Your favorite code editor can also minify code for you. We have minification tutorial for this. So go check it out.