Book Image

Sencha Touch Mobile JavaScript Framework

By : John Earl Clark, Bryan P. Johnson
Book Image

Sencha Touch Mobile JavaScript Framework

By: John Earl Clark, Bryan P. Johnson

Overview of this book

<p>Since its initial launch, Sencha Touch has quickly become the gold standard for developing rich mobile web applications with HTML5. Sencha Touch is the first HTML5 mobile JavaScript framework that allows you to develop mobile web apps that look and feel like native apps on both iPhone and Android touchscreen devices. Sencha Touch is the world's first application framework built specifically to leverage HTML5, CSS3 and JavaScript for the highest level of power, flexibility and optimization. It makes specific use of HTML5 to deliver components like audio and video, as well as a localStorage proxy for saving data offline. Sencha Touch also makes extensive use of CSS3 in its components and themes to provide an incredibly robust styling layer, giving you total control over the look of your application.<br /><br />Sencha Touch enables you to design both Apple iOS and Google Android apps without the need for learning multiple arcane programing languages. Instead you can leverage your existing knowledge of HTML and CSS to quickly create rich web applications for mobile devices in JavaScript. This book will show you how you can use Sencha Touch to efficiently produce attractive, exciting, easy-to-use web applications that keep your visitors coming back for more.<br /><br />Sencha Touch Mobile JavaScript Framework teaches you all you need to get started with Sencha Touch and build awesome mobile web applications. Beginning with an overview of Sencha Touch, this book will guide you through creating a complete simple application followed by styling the user interface and the list of Sencha Touch components explained through comprehensive examples. Next, you will learn about the essential touch and component events, which will help you create rich dynamic animations. The book follows this up with information about core data packages and dealing with data and wraps it up with building another simple but powerful Sencha Touch application.<br /><br />In short, this book has the step by step approach and extensive content to make a beginner to Sencha Touch into an ace quickly and easily.<br /><br />Exploit Sencha Touch &ndash; a cross-platform library aimed at next generation, touch-enabled devices</p>
Table of Contents (16 chapters)
Sencha Touch Mobile JavaScript Framework
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Updating the application for production


When you're done writing and testing your application, and are comfortable that it's ready for production, there are a few simple steps you should take before you release your application into the wild.

Point to production library files

In our HTML file, we suggested loading the file sencha-touch-debug.js via the script tag. You should definitely change this to sencha-touch.js, in order to reduce load times and memory use. You may also have used the sencha-touch-debug.css file to help with writing your own custom CSS. This should be changed back to sencha-touch.css as well.

Remove debugging code

You should also go through your application's JavaScript code and remove any console.log lines, alerts, or any other code you added to help you debug errors. Many mobile devices don't understand debugging code, and those that do may behave strangely if you leave it in place.

Tip

Be sure to test out your application again once you've removed the debugging code, just...