85. Proxies / Network sniffers
• Charles Proxy
• Fiddler
tools
Image from telerik fiddler
86. Connection simulators
• Network link conditioner (Mac/iOS)
• Charles Proxy
• Clumsy for Windows
• Net Limiter for Windows
• SlowyApp for Mac
• Chrome Developer Tools
tools
96. Network information API
• Android Browser, Silk (spec #1) type
• BlackBerry 10, old Firefox (spec #2) bandwidth
• Firefox, Chrome for Android 38+ (spec #3) type
html5 apis
97. 3- tools
- Learn where to test
- Measure loading times
- Measure responsiveness
- HTML5 APIs
147. Avoid JavaScript frameworks
• Embrace Vanilla JS
• If you really need them, load them after ATF
• Think on alternatives or partial frameworks
ATF
148. Careful with Data URI in CSS
• Images are non-blocking by default
• Using Data URI in CSS creates blocking images
• Use them only on non-ATF external CSS
ATF
149. Client side rendering
• Careful with client-side frameworks
• Try to render the initial view server-side
• Render at least a basic view
ATF
150. Client side rendering
• Careful with client-side frameworks
• Try to render the initial view server-side
• Render at least a basic view
ATF
5x
151. Web Fonts
• Blocks text rendering
• Fonts are bigger than 14Kb
• Remove characters
• Simplify glyphs
• Don’t use it on ATF
ATF
157. Responsive Web Design
• Using same URL for mobile/desktop still a good a idea
• Mix it with RESS / adaptive web design
• Load media queries CSS async
• Use server-side libraries to decide to send ATF only
• WURFL or DeviceAtlas
158. After ATF is ready
• Load rest of your content
• Gain experience while rendering ATF:
current performance, screen density, bandwidth
• Make decisions: HD/SD
167. Keep framerate high and consistent
• Keep framerate high and consistent
• Avoid DOM manipulations in loops/scroll
• Careful promoting GPU layers
consistent fps
185. final thoughts
- measure and profile on the real world
- don’t redirect, reduce requests
- atf content in 1s, defer the rest
- be simple, be aggressive
186. you can reach a good experience
firtman@gmail.com
@firt
firt.mobi/pmwfirt.mobi/mh5
Book signing:
Tue 18.00
Office Hours:
Tue 14.15
50% OFF!