ebook img

Mastering JavaScript High Performance PDF

208 Pages·2015·12.299 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Mastering JavaScript High Performance

Mastering JavaScript High Performance Master the art of building, deploying, and optimizing faster web applications with JavaScript Chad R. Adams BIRMINGHAM - MUMBAI Mastering JavaScript High Performance Copyright © 2015 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: March 2015 Production reference: 1250315 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78439-729-6 www.packtpub.com Credits Author Project Coordinator Chad R. Adams Milton Dsouza Reviewers Proofreaders Yaroslav Bigus Stephen Copestake Andrea Chiarelli Paul Hindle Vishal Rajpal Indexer Tejal Soni Commissioning Editor Ashwin Nair Production Coordinator Melwyn D'sa Acquisition Editor Owen Roberts Cover Work Melwyn D'sa Content Development Editor Parita Khedekar Technical Editor Anushree Arun Tendulkar Copy Editors Hiral Bhat Vikrant Phadke Stuti Srivastava About the Author Chad R. Adams is a mobile frontend architect, currently working at Intouch Solutions, where he looks at creative ways of building HTML5-driven content and native iOS, Android / Windows Runtime applications. He lives in Raymore, Missouri, with his wife, Heather, and son, Leo. In the past, Chad worked as a web developer for large websites, such as MSN.com, Ford.ca, Xbox.com, WindowsPhone.com, and Copia.com. He also speaks at developer conferences and groups in the Kansas City area on HTML5 and mobile development and is the author of Learning Python Data Visualization, Packt Publishing. You can contact Chad on LinkedIn (http://www.linkedin.com/in/chadradams), Twitter (@chadradams), or his website (http://chadradams.com). About the Reviewers Yaroslav Bigus is an expert in building cross-platform web and mobile applications. He has over 5 years' experience in development and has worked for companies in Leeds and New York. He has used the .NET Framework stack to develop backend systems, JavaScript, AngularJS, jQuery, Underscore for frontends, and Xamarin for mobile devices. Yaroslav is working for an Israeli start-up called Tangiblee. He has reviewed Xamarin Mobile Application Development for iOS, Packt Publishing, written by Paul F. Johnson; iOS Development with Xamarin CookBook, Packt Publishing, written by Dimitris Tavlikos; and Learning JavaScript Data Structures and Algorithms, Packt Publishing, written by Loiane Groner. I am thankful to my friends and family for their support and love. Andrea Chiarelli has over 20 years' experience as a software engineer and technical writer. In his professional career, he has used various technologies for the projects he was involved in, from C#, JavaScript, and ASP.NET to AngularJS, REST, and PhoneGap/Cordova. Andrea has contributed to many online and offline magazines, such as Computer Programming and ASP Today, and coauthored a few books published by Wrox Press. Currently, Andrea is a senior software engineer at the Italian office of Apparound, a mobile software company founded in the heart of Silicon Valley. He is a regular contributor to http://www.HTML.it, an Italian online magazine focused on web technologies. Vishal Rajpal is an experienced software engineer who started developing professional software applications in 2011. He has worked primarily on Java, Javascript, and multiplatform mobile application development, including PhoneGap and Titanium. Vishal is pursuing his master's degree in computer science from Northeastern University, Seattle, and has worked on C, Java, and JavaScript. He lives in Seattle and can be contacted at [email protected]. You can also read more about his work at https://github.com/vishalrajpal/ and http://www.vishal-rajpal. blogspot.in. Vishal has also worked on books by Packt Publishing, such as PhoneGap 3.x Mobile Application Development HOTSHOT and Learning Javascript, Data Structures, and Algorithms. www.PacktPub.com Support files, eBooks, discount offers, and more For support files and downloads related to your book, please visit www.PacktPub.com. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. TM https://www2.packtpub.com/books/subscription/packtlib Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books. Why subscribe? • Fully searchable across every book published by Packt • Copy and paste, print, and bookmark content • On demand and accessible via a web browser Free access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access. Table of Contents Preface v Chapter 1: The Need for Speed 1 Weren't websites always fast? 1 Getting faster 3 Selecting an effective editor 3 Integrated Development Environments 4 Mid-range editors 8 Lightweight editors 10 Cloud-based editors 12 Summary 15 Chapter 2: Increasing Code Performance with JSLint 17 Checking the JavaScript code performance 17 About the console time API 18 When to use console.time 21 What is JavaScript linting? 22 About JSLint 22 Using JSLint 24 Reviewing errors 26 Configuring messy white space 27 Understanding the use strict statement 30 Using console in JSLint 32 Summary 34 Chapter 3: Understanding JavaScript Build Systems 35 What is a build system? 35 Compiling code by example 36 Error-checking in a JavaScript build system 37 Adding optimization beyond coding standards 38 [ i ]

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.