Skip to Content
Smashing Mobile Web Development
book

Smashing Mobile Web Development

by Greg Avola
November 2012
Intermediate to advanced
312 pages
7h 4m
English
Wiley
Content preview from Smashing Mobile Web Development

Mobile Testing Techniques

Most programmers tend to write once and never revisit their code to improve the syntax. With programming, there are many ways to perform the same action; however, not all ways provide the best performance. Refactoring is the method in which you revisit your code and tweak certain aspects for better performance.

Most of the time, developers tend to refactor their code based on browser testing. This is the result of seeing the web page rendering on older browsers, which may have performance issues with CSS3. The Corks application is targeted toward mobile devices. Here are some tips to keep in mind during your testing approaches:

• Device and emulator tests are completely different: Make sure you test your app on the actual device to see if memory usage comes into play. For example, some apps run smoothly in Safari for a desktop computer, but don’t render very well on a mobile device. As a developer, sometimes it’s easy to forget the CPU and RAM power of a mobile device.

• Use HTML5 features and functionality that will support your users: When building your app, make sure you use features in HTML5 that your primary device supports. For example, because you use Web SQL in Corks, your application will not work in non-WebKit browsers, such Mozilla Firefox. Perhaps you knew this going into the build, but did not discover this during your testing phase. Using HTML5 features that your primary device supports makes your life a lot easier when choosing what tools ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Native Mobile Development

Native Mobile Development

Shaun Lewis, Mike Dunn
The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian

Publisher Resources

ISBN: 9781118348130Purchase book