SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 229 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

But, they are not interested in sacrificing
code readability and manageability in an effort to save a nanosecond here or there.
Chapter 9: Bandwidth and Performance Optimizations
210
Decide which camp you fall into. But at the same time, don ??™ t go through complex optimization hoops
unless you prove that your steps are going to make a substantive difference in the usability of your
application. Many optimization techniques you ??™ ll find people advocating may merely make your code
harder to work with and don ??™ t offer any notable performance boost.
Best Practices to Minimize Bandwidth
Arguably the greatest bottleneck of any iPhone and iPod touch application is the time it takes to
transport data from the Web server to Mobile Safari, especially if your application is running over
EDGE. Therefore, consider the following techniques as you assemble your Web application.
General
Separate your page content into separate .css, .js, and .html files so that each file can be cached
by Mobile Safari.
Reduce white space (tabs and spaces) wherever possible. Although this might seem like a
nominal issue, the amount of excess white space can add up, particularly on a larger - scale Web
application with dozens of files.
Remove useless tags, and unused styles and JavaScript functions in your HTML, CSS style
sheets, and JavaScript library files.


Pages:
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241