Escolar Documentos
Profissional Documentos
Cultura Documentos
Mehrdad Reshadi
(mreshadi@instartlogic.com) Lead Software Architect
Responsive websites
Single site adapts to the device
Adapt both Presentation & Performance
3
Same images (and data) sent to every device Expensive resizing on the client side Solution: Right image for each device
2.99
seconds
14.3
seconds
15.8
seconds
Source: Keynote Source: Keynote Systems, Average response time for retail sites across devices
0-1
1-2
2-3
3-4
4-5
5-6
6-7
7-8
8-9
9-10
14-5
>15
FIRST MILE
BOTTLENECK
10
INTERNET
BOTTLENECK
EDGE
11
2003
12
2014
Current responses
Ignoring performance at the expense of user experience Web app developers creating lower quality mobile experiences Automated quality reduction systems from CDNs
Result
Poor user experience, poor conversions, high bounce rates Reducing download size can improve load times But ultimately does not deliver a great user experience
14
Image Optimization
Browsers try to not block on image download
Technically, page can be interactive before images download Practically, user has to wait for important information to arrive
Simple model
d: time to download content
Network bound
cpu
Original Images
d1
r1
d2 r2 (d1+d2) U
User sees all info after all images are fully download Large image => slow download => high wait time
Progressive Images
d1 r1 d2 r2 (d1+) U Assume 1connection download render
d1 r1
(d1+) U d1
d2 r2
Use smaller (progressive?) images first Load actual images after all images are loaded replace the small ones More complex More download => can starve other tasks, more cost on the server
Stream Images
d'1 r'1 d'2 r'2 Assume 1connection download render
d"1 r"1
(d1+) U d1 d"2 r"2
Send only part of the images first Load rest of images later Same download as before, but faster information load
20 | Confidential and proprietary
CDN ADC
TO STREAMING
TO STREAMING TO STREAMING
22
23
CDN
Web Application
24
2 Mbps
Ready
2 Mbps
Ready
300 x 169 28 KB
27
Single high quality version on web server Developers can request any size they want Instart Logic will resize images during delivery Get your performance and conversions back
Web Application
NanoVisor.JS
Browser API & Resources
Web Browser
Application Server
Designed as a full replacement for a CDN No changes required for you or end users
28
Call to action
Optimizations
Concepts similar to JIT, Profile driven compiler optimizations New and novel web-app optimizations
Agenda
Current approaches to desktop, mobile, and tablet sites Responsive sites function and performance impact Image quality and performance impact on conversions New challenges with modern web delivery A new modern solution for fast responsive websites Demo and customer case studies
32
33
34
Switched from CDN Using large immersive images Dramatic performance boost
2x improvement in page load times
35
Summary
Responsive websites can help tame the multi-screen world
But performance needs to be a key part of your strategy Images are a big impact on performance
Increase conversions with a faster responsive mobile website with a new approach to delivery