Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Responsive Design High Performance
  • Table Of Contents Toc
Responsive Design High Performance

Responsive Design High Performance

By : Els
3 (2)
close
close
Responsive Design High Performance

Responsive Design High Performance

3 (2)
By: Els

Overview of this book

This book is ideal for developers who have experience in developing websites or possess minor knowledge of how responsive websites work. No experience of high-level website development or performance tweaking is required.
Table of Contents (11 chapters)
close
close
7
7. Speeding Up Development with Design Concepts, Patterns, and Programs
10
Index

Compression


Using compression on your content can minimize the size of the content being delivered. This is done by compressing it when it is being transferred from the server and deflating it when it arrives at the client location. This is done by the following code line:

<IfModule mod_deflate.c>

The preceding piece of code checks whether the module to compress/deflate the content is currently enabled on the server.

You might wonder if compression has a notable effect on your website? Take a look at this screenshot that I took from a website using GZIP compression.

As you can see from the screenshot, the website file size was reduced by 76.6%, which is more than half its original size. A great place to test the compression is to go to http://www.feedthebot.com/tools/gzip/ and enter your web URL.

If you're using a NGINX server, the code will be slightly different; here is a sample:

gzip on;
gzip_comp_level 2;
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Responsive Design High Performance
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon