O'Reilly logo

HTML5 for Flash Developers by Matt Fisher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code minimizing and obfuscation

After you have finished developing your HTML5 application, you may notice that the amount of referencing to external JavaScript and CSS files may have gotten a little out of hand. One of the easiest ways to begin the battle for faster page loads is to minimize your JavaScript and CSS source code into the smallest file size possible. This will allow for the client to retrieve the content over the Internet in a shorter time allowing the remainder of the page to finish loading.

Some CSS compilers such as LESS (http://lesscss.org) and SAS (http://sass-lang.com) contain the ability to minimize your CSS automatically, saving you the hassle of remembering to do it yourself after every update to your site. However, if you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required