Instant PageSpeed Optimization
()
About this ebook
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.
ApproachFilled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. Instant PageSpeed Optimization is a hands-on guide that provides a number of clear, step-by-step exercises for optimizing your websites for better performance and improving their efficiency.
Who this book is forInstant PageSpeed Optimization is aimed at website developers and administrators who wish to make their websites load faster without any errors and consume less bandwidth. It’s assumed that you will have some experience in basic web technologies like HTML, CSS3, JavaScript, and the basics of networking, as well as knowing how to edit Apache configuration.
Sanjeev Jaiswal
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.
Related to Instant PageSpeed Optimization
Related ebooks
Instant StyleCop Code Analysis How-to Rating: 0 out of 5 stars0 ratingsRedmine Plugin Extension and Development Rating: 0 out of 5 stars0 ratingsjQuery UI 1.7: The User Interface Library for jQuery Rating: 0 out of 5 stars0 ratingsWebRTC Cookbook Rating: 0 out of 5 stars0 ratingsMeteor Design Patterns Rating: 0 out of 5 stars0 ratingsjQuery Mobile Web Development Essentials - Third Edition Rating: 0 out of 5 stars0 ratingsMeteor Cookbook Rating: 5 out of 5 stars5/5Mastering MeteorJS Application Development Rating: 4 out of 5 stars4/5Jump Start Web Performance Rating: 0 out of 5 stars0 ratingsApache Solr PHP Integration Rating: 0 out of 5 stars0 ratingsAdministrating Solr Rating: 0 out of 5 stars0 ratingsInstant IntroJs Rating: 0 out of 5 stars0 ratingsLearning Modular Java Programming Rating: 0 out of 5 stars0 ratingsInstant Play Framework Starter Rating: 0 out of 5 stars0 ratingsBuilding Impressive Presentations with Impress.js Rating: 4 out of 5 stars4/5Instant Hands-on Testing with PHPUnit How-to Rating: 0 out of 5 stars0 ratingsCocos2D Game Development Essentials Rating: 0 out of 5 stars0 ratingsInstant HTML5 Geolocation How-To Rating: 0 out of 5 stars0 ratingsPhantomJS Cookbook Rating: 0 out of 5 stars0 ratingsSoftware Engineering New Approach (Traditional and Agile Methodologies) Rating: 0 out of 5 stars0 ratingsjQuery Hotshot Rating: 0 out of 5 stars0 ratingsLearning NGUI for Unity Rating: 0 out of 5 stars0 ratingsXamarin Mobile Application Development for Android - Second Edition Rating: 0 out of 5 stars0 ratingsJavaScript Unleashed: Harnessing the Power of Web Scripting Rating: 0 out of 5 stars0 ratingsPHPEclipse: A User Guide Rating: 3 out of 5 stars3/5Jasmine JavaScript Testing - Second Edition Rating: 0 out of 5 stars0 ratingsInstant Highcharts Rating: 0 out of 5 stars0 ratingsThe New Frontier In Web Api Programming Rating: 0 out of 5 stars0 ratingsMastering Ninject for Dependency Injection Rating: 0 out of 5 stars0 ratingsReSharper Essentials Rating: 4 out of 5 stars4/5
Internet & Web For You
How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5No Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5How to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsThe Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5Get Rich or Lie Trying: Ambition and Deceit in the New Influencer Economy Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Stop Asking Questions: How to Lead High-Impact Interviews and Learn Anything from Anyone Rating: 5 out of 5 stars5/5How To Start A Podcast Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5Podcasting For Dummies Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5The Gothic Novel Collection Rating: 5 out of 5 stars5/5The Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5How To Start A Profitable Blog: Turn Your Blogging Passion Into Profit (Blog Mastermind Booklets) Rating: 4 out of 5 stars4/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsHacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5How To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5Six Figure Blogging In 3 Months Rating: 4 out of 5 stars4/5
Reviews for Instant PageSpeed Optimization
0 ratings0 reviews
Book preview
Instant PageSpeed Optimization - Sanjeev Jaiswal
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