Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
MEAN Cookbook

You're reading from   MEAN Cookbook The meanest set of MEAN stack solutions around

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787286573
Length 450 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 McClay McClay
Author Profile Icon McClay
McClay
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Title Page
Credits
About the Author
Acknowledgement
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Working with Angular 4 FREE CHAPTER 2. Enhancing Your User Interface 3. Working with Data 4. Using Express Web Server 5. REST APIs and Authentication 6. Cloud Service Integrations 7. MongoDB and Mongoose 8. Relationships 9. Build Systems and Optimizations 10. Debugging 11. Automated Testing 12. Whats new in Angular 4

Optimizing images for delivery with WebPack


Over the past several years, the average size of websites has increased dramatically. The average web page today is 300% larger than their counterparts from 2013. The largest source of that increase in file size for websites can be found in images. In fact, images are responsible for over 50% of the file size of your average website, as seen in the following table:

Type of asset

2011

2013

2015

2017

HTML

37 KB

54 KB

54 KB

26 KB

Style sheets

28 KB

38 KB

64 KB

60 KB

Fonts

5 KB

22 KB

100 KB

97 KB

Scripts

135 KB

227 KB

337 KB

347 KB

Images

482 KB

915 KB

1332 KB</span>

1714 KB

Total page size

799 KB

1097 KB

2131 KB

3034 KB

From: HTTP Archive Project, Interesting Stats - http://httparchive.org/interesting.php

Being able to optimize image resources is a critical tool to maintain the speed and performance of our websites and web applications. It's also something that a build tool such as WebPack can help us do as part of our build process by leveraging tools to compress and resize images...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images