Top Banner
Optimizing your Web Application
18

Optimising your web application

Jan 16, 2015

Download

Technology

BigRock India

Praveen Umanath, Product Manager at BigRock conducts a session on how to optimise web applications at httpX 2013, New Delhi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Optimising your web application

Optimizing your Web Application

Page 2: Optimising your web application

But Why?

• 47% of consumers expect a web page to load in 2 seconds or less.

• 40% of people abandon a website that takes more than 3 seconds to load.

• A 1 second delay in page response can result in a 7% reduction in conversions.

*Source = http://blog.kissmetrics.com/loading-time/

Page 3: Optimising your web application

Two Sides to Optimization

Increase Speed Reduce Errors

Page 4: Optimising your web application

Alright , lets get cracking

Page 5: Optimising your web application

Not so fast there, buster…

Page 6: Optimising your web application

First, we need to monitor

Page 7: Optimising your web application

Application and Website Monitoring

Page 8: Optimising your web application

NewRelic “Real User Monitoring”

Page 9: Optimising your web application

What makes up Page Load Time?

• Request queuing – wait time between App and Web Server

• Network – Latency/Round trip time• Web Application – time spent in application

code• DOM – parsing and interpreting HTML• Page Rendering – displaying HTML, inline JS

and images

Page 10: Optimising your web application

Capturing Errors

Page 11: Optimising your web application

JavaScript - ErrorCeption

Page 12: Optimising your web application

PHP - NewRelic

Page 13: Optimising your web application

Functional Tests

• We’ve implemented over 50 functional tests using watir

def search_for(domain) @watir.text_field(:id => 'field_domains-input').set(domain) @watir.span(:class => 'tlds-dd').click @watir.button(:id => 'go_btn').click switch_to :search_results_page end

Page 14: Optimising your web application

I feel the need…the need for Speed!

Page 15: Optimising your web application

Serve Resources from sub-domains

*Source = StackOverFlow - http://stackoverflow.com/questions/11185618/whats-the-maximum-number-of-simultaneous-connections-a-browser-will-make

Page 16: Optimising your web application

Mod_pagespeed

• The best thing since sliced bread!• Open source module made available by

Google• Works with Apache• Contains 40+ optimization filters which can be

switched on/off

Page 17: Optimising your web application

Mod_pagespeed

• The best thing since sliced bread!

ModPagespeedEnableFilters move_css_to_head,combine_css,rewrite_css,fallback_rewrite_css_urls

ModPagespeedEnableFilters rewrite_javascript,inline_css,inline_javascript,rewrite_images,convert_jpeg_to_progressive

• https://developers.google.com/speed/

Page 18: Optimising your web application

And One more thing…