Rendering Lightening Fast Web Pages

Similar documents
Web Performance. Lab. Bases de Dados e Aplicações Web MIEIC, FEUP 2014/15. Sérgio Nunes

Speed up your web site. Alan Seiden Consulting alanseiden.com

Front-End Performance Testing and Optimization

Web Performance Boot Camp. Speed It Up

Contents of the document

making drupal run fast

Improving Magento Front-End Performance

Accelerating Wordpress for Pagerank and Profit

79 Tips and Tricks for Magento Performance Improvement. for Magento Performance Improvement

Improved Speed on Intelligent Web Sites

Website Optimization Tips for Speed

1. Minimize HTTP Requests. 2. Put Stylesheets at the Top

Drupal Performance Tuning

Web Performance. Sergey Chernyshev. March '09 New York Web Standards Meetup. New York, NY. March 19 th, 2009

Performance Report for: Report generated: Friday, April 24, 2015, 7:29 AM (via API)

AUDIT REPORT EXAMPLE

HTTP Caching & Cache-Busting for Content Publishers

E-commerce is also about

Mobile Application Performance Report

Datasheet - Sitekit CMS Performance Tips

Website Performance: Kyle Simpson

Optimizing your Magento store for heavy API access. 1.0 June 2013

Stress Testing for Performance Tuning. Stress Testing for Performance Tuning

Apache web server magic on IBM i. Alan Seiden Consulting alanseiden.com

Magento Performance Optimization Whitepaper

Review of Generated on 9 Jan, :40 PM SCORE. Table of Contents. Iconography. SEO Mobile Social Sharing

Optimizing WordPress Performance: Page Speed and Load Times. Doug Yuen

WordPress Optimization

Speed Matters. Simple Ways to Make Your Web Site Faster. Flickr: Uploaded February 11, 2007 by hawridger

Ajax Performance Tuning and Best Practice

Web Performance First Aid. Alan Seiden Consulting alanseiden.com

SiteCelerate white paper

Simple Tips to Improve Drupal Performance: No Coding Required. By Erik Webb, Senior Technical Consultant, Acquia

85.1. Review of google.com. Your website score. Generated on Introduction. Table of Contents SEO. Iconography Pass

Why Web Performance Matters Open Text Web Solutions Usergroup Anwendertagung Feb Tobias Dreyschultze Tobel Online Web Consultancy

Search Engine Optimization Glossary

Digital Downloads Pro

The importance of Drupal Cache. Luis F. Ribeiro Ci&T Inc. 2013

(An) Optimal Drupal 7 Module Configuration for Site Performance JOE PRICE

How To Make Your Website More Exciting With A Browser Cache

SE Ranking Report

JTouch Mobile Extension for Joomla! User Guide

Presentation tier performance optimization

A BASELINE FOR WEB PERFORMANCE WITH PHANTOMJS

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

Table of contents. HTML5 Data Bindings SEO DMXzone

The Little Joomla SEO Book. How to make a Search Engine Optimized Joomla website

SEO Search Engine Optimization. ~ Certificate ~ For: Q MAR WDH By

Solution Guide. Optimizing Microsoft SharePoint 2013 with Citrix NetScaler. citrix.com

Advanced Webserver Setup for WebGUI. WebGUI User Conference Chicago, October 2004 Leendert Bottelberghs, United Knowledge

SEO BEST PRACTICES IPRODUCTION. SEO Best Practices. November 2013 V3. 1 iproduction

WompMobile Technical FAQ

Using Steelhead Appliances and Stingray Aptimizer to Accelerate Microsoft SharePoint WHITE PAPER

PageSpeed Insights. (expiration not specified)

FIVE WAYS TO OPTIMIZE MOBILE WEBSITE PERFORMANCE WITH PAGE SPEED

Prepared for: Harry. Website: fortyfootpictures.com. By: Patrick Slavin

How To Optimize Your Website With Radware Fastview

SEO Search Engine Optimization. ~ Certificate ~ For: By. and

ANALYSIS. wikia.com. YOUR NAME & SLOGAN Call Me:

9 Tried and Tested Tips to Increase the Power of your Magento Store

Kentico Site Delivery Checklist v1.1

A Tool for Evaluation and Optimization of Web Application Performance

603: Enhancing mobile device experience with NetScaler MobileStream Hands-on Lab Exercise Guide

Implementing Reverse Proxy Using Squid. Prepared By Visolve Squid Team

6.1.6 Optimize internal links Search engine friendly URLs Add anchor text to links 6.2 Keywords Optimize keywords 6.2.

S AMPLE CHAPTER. Dean Alan Hume MANNING

Deep analysis of a modern web site

How To Use Ngnix (Php) With A Php-Fpm (Php-Fmm) On A Web Server (Php5) On Your Web Browser) On An Ubuntu Web Server On A Raspberry Web 2.5 (Net

CSE 135 Server Side Web Languages Lecture # 12. Web Performance Notes

Performance testing Web 2.0

Baidu: Webmaster Tools Overview and Guidelines

Adolfo G. Nasol The Bethel Educational Support and Technology Inc.

STeP-IN SUMMIT June 2014 at Bangalore, Hyderabad, Pune - INDIA. Mobile Application Performance: Test Strategies & Enhancement through WPO

A 100k Users.. Now What?

Drupal CMS for marketing sites

The Devil is in the Details. How to Optimize Magento Hosting to Increase Online Sales

Joostrap Template Documentation

Microsoft TMG Replacement with NetScaler

Geo Targeting Server location, country-targeting, language declarations & hreflang

MOBILE SEO TECHNIQUES

CMS Diagnostics Guide

Nginx 1 Web Server Implementation

Analysis of Yslow Performance Test tool & Emergences on Web Page Data Extraction

Advertising Specifications, Standards and Guidelines

WATKINS MFG DEALER GUIDE TO UNDERSTANDING WOORANK REPORTS

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Responsive Web Design and Optimizing Loading Times on Mobile Devices for Enhanced Web Presence

Additional information >>> HERE <<<

An Advanced SEO Website Audit Checklist

SEO AUDIT REPORT On #ecommerce Website# Dubai, UAE

ANALYSING SERVER LOG FILE USING WEB LOG EXPERT IN WEB DATA MINING

Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below.

Magento 1.3: PHP Developer's Guide

Running Nginx as Reverse Proxy server

HOW TO CREATE THEME IN MAGENTO 2

CIC Web Applications

CloudOYE CDN USER MANUAL

Xtreeme Search Engine Studio Help Xtreeme

Computer Networks. Lecture 7: Application layer: FTP and HTTP. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Transcription:

Rendering Lightening Fast Web Pages Page 1

RENDERING LIGHTENING FAST WEB PAGES ATLOGYS ACADEMY @atlogys Latest trends and innovations in web and mobile technology www.atlogys.com/resources Guides, Tutorials, advice on best practices, standards, Do s and Don ts. blog.atlogys.com Contact Details: Contact: (+91) 11 26475155 Practical Notes on getting *Good* software development. E-mail: ritika@atlogys.com Address: R-8, Nehru Enclave,New Delhi 110019, India Page 2

Table of Contents 1. Optimize your Images...4 2. Dynamic Pages...4 3..HTACCESS...4 4. Leverage browser caching...5 5. Expires or a Cache-Control Header...6 6. Scripts...6 7. Cleanup the Head...7 8. CSS...7 9. GZIP what you can...8 10. Plugins/Extensions to measure site speed...8 Page 3

GUIDE TO OPTIMIZING THE WEB PAGES This guide covers 10 basic must-do s that all webmasters MUST FOLLOW to improve the page load time of their sites. This is NOT the exhaustive list but enough to get you started. The first of its kind guide with hands on code samples and crisp to-the-point action items. 1. OPTIMIZE YOUR IMAGES Always use images that uses less colors, i.e., smaller file sizes. There are many tools available such as Adobe Photoshop or online tools like Smush.it, ImageOptim, pngnq Use Sprites - CSS Sprites or Image maps combines multiple images into a single image. Overall size is about the same, but reducing the number of HTTP requests speeds up the page. Don t use bigger images than you need just because you can set the width and height in HTML. And yes, you MUST set the width and height in each img tag. Make favicon small and cacheable. Imagemagick can help you create small favicons. Avoid empty image src ( <img src= > ) 2. DYNAMIC PAGES Split serving of your static and dynamic pages. Don t burden the application server to fetch and give the static content. The static content like css, js files and all images must be stored in a separate folder that can be served by the proxy/reverse proxy or frontend load balancer itself. This way the application server like Unicorn, Passenger is not burdened by requests for images, css etc. 3..HTACCESS It is a configuration file which controls the directory it is placed in and all the subdirectories underneath it. Page 4

With.htaccess rules, you can have A more secure site Compressed components for faster loading times Leverage Browser cache for rendering returning and recurring page visits Remove extensions from URL names like: If you want to remove.php,.html,.htm extensions with.htaccess, then in your.htaccess : RewriteEngine On RewriteCond %{REQUEST_FILENAME}!-f RewriteRule ^([^\.]+)$ $1.php [NC,L] These are some of the good resources for step by step information about.htaccess [Link2 ] 4. LEVERAGE BROWSER CACHING Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network. # BEGIN Expire headers <ifmodule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 5 seconds" ExpiresByType image/x-icon "access plus 2592000 seconds" ExpiresByType image/jpeg "access plus 2592000 seconds" ExpiresByType image/png "access plus 2592000 seconds" ExpiresByType image/gif "access plus 2592000 seconds" ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" ExpiresByType text/css "access plus 604800 seconds" ExpiresByType text/javascript "access plus 216000 seconds" ExpiresByType application/javascript "access plus 216000 seconds" ExpiresByType application/x-javascript "access plus 216000 seconds" ExpiresByType text/html "access plus 600 seconds" ExpiresByType application/xhtml+xml "access plus 600 seconds" </ifmodule> # END Expire headers Page 5

This way you can avoid fetching the same non-changed items like images from the server. Instead, if the browser finds that the resources are not expired, the browser will render them from the dick of the user where it has been cached. 5. EXPIRES OR A CACHE-CONTROL HEADER A first-time visitor to your page may have to make several HTTP requests, but by using the Expires header you make those components cacheable. This avoids unnecessary HTTP requests on subsequent page views. in your.htaccess : # BEGIN Cache-Control Headers <ifmodule mod_headers.c> <filesmatch "\.(ico jpe?g png gif swf)$"> Header set Cache-Control "public" </filesmatch> <filesmatch "\.(css)$"> Header set Cache-Control "public" </filesmatch> <filesmatch "\.(js)$"> Header set Cache-Control "private" </filesmatch> <filesmatch "\.(x?html? php)$"> Header set Cache-Control "private, must-revalidate" </filesmatch> </ifmodule> # END Cache-Control Headers 6. SCRIPTS To help the page load faster, move scripts to the bottom of the page if they are deferrable. There are very few reasons for needing scripts at the top of your page. <script src= js/script.js ></script> </body> Page 6

Combine two or more files to improve the response times. Google began hosting popular scripts such as jquery. If you re using such a library, it is strongly recommended that you link to Google s CDN rather than using your own script. Use the YUI Compressor or Google s Closure Compiler(Powerful) to compress JavaScript files Remove Duplicate Scripts. It hurts performance to include the same JS file twice in one page. Internet Explorer is very popular to have Unnecessary HTTP requests! Minification helps to remove unnecessary characters from the code to reduce its size thereby improving load times. Two popular tools for minifying JavaScript code are JSMin and YUI Compressor. The YUI compressor can also minify CSS. 7. CLEANUP THE HEAD Try to keep title under 80 characters. Always try to use mod_rewrite to put favicon icon. Meta Keyword tag should not exceed 5 keywords. Note: Separate keywords with a comma and a space Meta Description tag : Keep it under 160 characters. Note: Google does not use the keywords meta tag in web ranking. So it s really waste of time filling head full of keywords in meta tags. [ Read ] 8. CSS It s very important to load CSS as soon as possible, ideally before any images have been loaded. So don t put any <link> or scripts above the stylesheet in the HTML head. Minification helps to remove unnecessary characters from the code to reduce its size thereby improving load times. There are various tools available on the internet that enable you to easily optimize and compress your CSS code. CSS Compressor, CSS Drive Gallery, Minify CSS etc. Combine css files. This can also be used to compibe js files. First you need to download and configure the combine.php script. (Edit only CSS and JS directory ). Upload the combine.php script to the root of your website. Finally you need modify your.htaccess file. Page 7

RewriteEngine On RewriteBase / RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1 RewriteRule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1 9. GZIP WHAT YOU CAN Save bandwidth by compressing HTML,CSS and JS files using GZIP method. You can tell Apache to inform browsers that the content is compressed in your.htaccess file. The following rule will gzip all your *.css, *.js, *.html, *.html, *.xhtml, and *.php files: <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript </ifmodule> Note: Image and PDF files should not be gzipped because they are already compressed. Trying to gzip them not only wastes CPU but can potentially increase file sizes. GZIP does not compress images, just the raw code being output and sent to the user. Use the online gzip test to check whether your page is compressed. Use tools like Varnish to gzip your static content. 10. PLUGINS/EXTENSIONS TO MEASURE SITE SPEED "yslow" - A Firebug plugin to measure and determine why a particular page is slow. GFast From Google Google webmaster tools Page 8

The Complete Detailed Report.. (Want The Full Exhaustive List?) Request the full version of the report to get more insider information into more topics like: HTTP ETag header Minimize the Number of iframes Better Indexing in Google Search Engine Write to us at ritika@atlogys.com Page 9

ABOUT: ATLOGYS TECHNICAL CONSULTING Who are we? A group of Ex-google, Ex-Carnegie Mellon and Ex-IIT computer scientists who are super passionate about technology. What We Do? We act as your CTO (Chief Technology Officer) to take full ownership of your technology. Atlogys is an IT consulting company comprising of extremely passionate and technically sound computer scientists and software engineers from Google, Carnegie Mellon and IIT. We believe that the process of offshore software development is inefficient and expensive for the end customer. Our goal is to enhance this process by making it TURNKEY, RELIABLE AND HASSLE-FREE. We do this by working for you as your CTO. We provide detailed and personalized techno-business strategy on your product We do detailed architecture design for your application We manage the complete offshore lifecycle and delivery of your software project with your development vendor We Offer an extra Engineering Eye for Detail to ensure your product is 360 degree complete with respect to performance, security, scalability. Engage us on your next software masterpiece on your business while we handle all of your software! so you can focus Page 10