Book Image

AngularJS Web Application Development Blueprints

By : Vinci J Rufus
Book Image

AngularJS Web Application Development Blueprints

By: Vinci J Rufus

Overview of this book

Table of Contents (17 chapters)
AngularJS Web Application Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Getting your app ready for production deployment


What we just uploaded to S3 was fully functional, but it wasn't quite production-ready from a performance standpoint. If you ran it through the YSlow Firebug add-on or Google Page Speed, you'll notice it doesn't get a very high performance score. You'll probably get a "C" grade on YSlow.

Improving the page-load time of your app

Currently, our app has about seven external JavaScript files, two CSS files, and some custom web fonts included in it. These are about nine additional HTTP requests that need to be made before the full content can be displayed.

Ideally, for production deployments, our JavaScript files need to be concatenated and minified. We will do this by using Grunt, an excellent Node- and JavaScript-based task runner. You can alternatively look at either gulp.js (www.gulpjs.com) or Brunch (www.brunch.io), which are similar build tools that claim to be fast and also have some interesting plugins you can make use of.

If you have completed...