the Blog

Tips & Tricks

Let’s get minified - Compressing and Optimizing your Code.

Posted on July 14, 2011 by Michael Rosario  |  Comments

I love javascript and I end up using 1,2,3…8 scripts on a site.  It comes to a point that all these small file sizes add up.  Here are some tools you can use to optimize, compress, and reduce the filesizes of your javascript files.  In most cases, removing white-spaces, comments, and reducing variable names can cut your filesize in half.

Notice: Some individuals also use this to protect their code, as some compressions makes the code “unreadable” to normal humans. ha!  For coders like us, they just make it harder and some people are too lazy to convert your code back to readable formats.

 

comments powered by Disqus

Other Recent Blog

What do I need to be a Web Developer?
Posted on November 8, 2017  |  Comments I was asked recently asked by a college student what he needs to be a "Web Developer." If I were to sum it into one blog entry, it would be a mix of the tools I use, best-practices and the coding languages that I know. It's never to late to learn how to code and learn new tools. Once you have an idea on the basics - it's never too far to learn another. Every single thing online has documentation, youtube videos, and wikis readily available. There are a lot of tools out there and a lot of developers willing to share their two cents on forums and social media.