Throughout the book, we have stressed the importance of optimizing from the very start of our application development. Although we have looked at topics from caching elements in JavaScript to modularizing our styles, in this chapter we want to summarize the techniques used in the book. After all, performance is highly important in our mobile applications for several reasons. In this chapter, we will cover optimizing our styles, scripts, and media. In addition to covering optimization techniques, we'll go over good coding standards that enhance the maintainability of your codebase while also enhancing performance at the same time. We'll start out by discussing stylesheets.
In this chapter, we will cover the following topics:
Validating CSS
Profiling CSS
CSS best practices
Validating JavaScript
Profiling JavaScript
JavaScript best practices