O'Reilly logo

Learning Web Development with Bootstrap and AngularJS by Stephen Radford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Using Task Runners

Our project is looking great, but so far, it's not all that efficient. We've included 10 JavaScript files, which mean 10 network requests, not even taking into account our style sheet. Of course, this means that the page is going to take longer to load. Once our page has loaded, the browser then has to go and fetch each JavaScript file and compile them.

We could manually take these files and concatenate them into a single file. However, as we're still working on our project, it's likely we're going to continue to make changes, and it would be tedious to continually repeat the process.

Task runners are a great way of automating boring tasks like this. We'll no longer need to manually concatenate and minify, but instead, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required