Instant PageSpeed Optimization - Sanjeev Jaiswal - E-Book

Instant PageSpeed Optimization E-Book

Sanjeev Jaiswal

0,0
20,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.
Mehr erfahren.
Beschreibung

PageSpeed is an important aspect of web design and site management. It is a Google measure of how well the site performs to technical measurements. PageSpeed can be measured using Google's own tool or a browser plugin. It is used to score sites in indices, and is important from a UI view as it forms a large part of the success of your site.Instant PageSpeed Optimization is a practical, hands-on guide that provides you with a number of clear, step-by-step exercises, which will help you to take advantage of the real power that is behind web optimization techniques, and give you a good grounding in using it in your websites.The book explores topics like HTML standards used for optimization, minifying scripts, and taking care of images, and solves the common errors that users do unknowingly. It will take you through a number of clear, practical recipes that will help you to take advantage of all the possible technologies to make your websitess efficient, fast, and accurate. You will not only learn basic standards to optimize your websites, but you will also learn some advanced level methods such as Apache handling, Flush methods, making AJAX cacheable, setting up browser caches, and reducing image size using CSS sprites.

If you want to take advantage of all the necessary methods to make your website faster and efficient, then this book is a must-have.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 73

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Instant PageSpeed Optimization
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Instant PageSpeed Optimization
Minimizing HTTP requests (Simple)
How to do it...
How it works…
There's more...
Adding an Expires or Cache-Control header (Simple)
Getting ready
How to do it...
How it works...
There's more...
Following HTML standards (Simple)
Getting ready
How to do it...
There's more...
Reducing DOM elements (Intermediate)
How to do it...
How it works...
Setting up CSS sprites (Advanced)
Getting ready
How to do it...
There's more...
Enabling compression (Simple)
Getting ready
How to do it...
How it works...
Optimizing images (Simple)
How to do it...
There's more…
Minifying JavaScript and CSS files (Simple)
Getting ready
How to do it...
How it works...
There's more...
Setting up browser caching (Simple)
How to do it...
How it works...
Using Apache mod_pagespeed – installing and configuring (Advanced)
Getting ready
How to do it...
How it works...
There's more...
Making favicon.ico small and cacheable (Simple)
How to do it...
How it works...
There's more...
Avoiding redirects and Not Found errors – 301 and 404 codes (Advanced)
How to do it...
How it works...
There's more...
Using the Flush method (Intermediate)
Getting ready
How to do it...
How it works...
Configuring ETags (Advanced )
How to do it...
How it works...
There's more...
Making AJAX cacheable (Intermediate)
How to do it...
How it works...
There's more...
Rules for using the CSS, JavaScript, and image files (Simple)
How to do it...
How it works...

Instant PageSpeed Optimization

Instant PageSpeed Optimization

Copyright © 2013 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: September 2013

Production Reference: 1240913

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-84969-732-3

www.packtpub.com

Credits

Author

Sanjeev Jaiswal

Reviewer

Ravindran Navaneethan

Acquisition Editor

Akram Hussain

Commissioning Editor

Neha Nagwekar

Technical Editors

Jalasha D'costa

Kapil Hemnani

Copy Editors

Mradula Hegde

Laxmi Subramanian

Project Coordinator

Amey Sawant

Proofreader

Faye Coulman

Production Coordinator

Kirtee Shingan

Cover Work

Kirtee Shingan

Cover Image

Abhinash Sahu

About the Author

Sanjeev Jaiswal is a computer graduate with four years of industrial experience and more than six years of web development experience. He extensively uses Perl and GNU/Linux for his day-to-day work and also teaches Drupal and WordPress CMS to bloggers. He has worked closely with major clients such as CSC, IBM, and Motorola mobility.

Sanjeev loves teaching technical functionalities to engineering students and IT professionals and has been teaching since 2008. He founded AlienCoders (http://www.aliencoders.com)based on the principle of "learning through sharing" for Computer Science students and IT professionals in 2010, which became a huge hit in India among engineering students.

He usually uploads technical videos to YouTube on his channel "AlienCoders". Sanjeev has a huge fan base on his site and on YouTube because of his simple but effective way of teaching and his philanthropic nature toward students.

I would like to thank my parents for their moral support while writing these recipes till late into the night. I would also like to express deep thanks and gratitude to my best friend Ritesh Kamal, without whose efforts this book would quite possibly not have happened.

I would also like to thank all the mentors, friends, and supporters I've had over the years, especially my mentors Senthil KS, Siva Reddy Mudiyala, Michael Mueller, Manu Zacharia, Varghees Samraj, and the entire AlienCoder's team. There is not a chance I could be writing this book today without having learned from these people. It is because of them and a few my best friends, Ranjan Pandey, Rakesh Pandey, Pradeep Pant and others, that I achieved a set of seemingly impossible goals in an incredibly short period of time.

About the Reviewer

Ravindran Navaneethan is a software engineer from Hyderabad, India. He is a B.Tech graduate from the Government College of Technology, Coimbatore. He has more than 12 years of experience in software development and currently works at United Online Software Development (India) Pvt. Ltd.

Ravindran started his career as a Windows developer and later moved on to web development. He has hands-on experience in both Windows and web development and has managed small- to mid-sized development teams. Ravindran is interested in learning new programming languages and exploring various tools and technologies.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

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.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. 

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via 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 nine entirely free books. Simply use your login credentials for immediate access.

Preface

If you are a web developer or website administrator/owner, sooner or later you will surely require the techniques to optimize your website by using various available resources, by tweaking server settings, and so on. This book will show you how to optimize the speed of your website through various common techniques.

What this book covers

Minimizing HTTP requests (Simple) shows you that lesser the number of requests, faster the website will be. This recipe will show you how to minimize such HTTP requests without hampering the website.

Adding an Expires or Cache-Control header (Simple) shows us that adding the Expires or Cache-Control header will make downloadable files cacheable and will save time in opening websites without any delay.

Following HTML standards (Simple) teaches us that by following proper HTML standards, we can reduce the number of warning and errors that browsers catch and make the website faster by using correct tags, elements, and so on.

Reducing DOM elements (Intermediate) demonstrates that the website will take less time if there are lesser DOM elements contained within it. We can reduce it significantly by removing unnecessary DOM elements through close observation.

Setting up CSS sprites (Intermediate) shows us that by using CSS codes to show images wherever required, we can save time and space. Using one large image is better than using several different images. It also shows us how to use the CSS sprites technique on it.

Enabling compression (Simple) shows us that compressing the file size over the network would reduce the time taken to send an HTTP request and get an HTTP response back.

Optimizing images (Simple) urges us to use an image format wisely. This recipe will deal with various ways to optimize an image for the site to run faster.

Minifying JavaScript and CSS files (Simple) introduces the concept of minification, which is the technique that one should use in the production of a website in order to reduce the size of the site and thus increasing its speed.

Setting up browser caching (Simple) explains that the browser cache depends more on the user than the website owner, and the Cache-Control header can be used for this purpose.