Presented By:
Estelle Weyl
Load Time (both mobile and desktop)
Mobile Performance
- Device Limitations
- UI Responsiveness
- Touch event: 300 – 500ms delay
- Instead of click, use touch end
- Disable button or some other feedback that the event was registered
- Extra touches aren’t forgotten
- Touch event: 300 – 500ms delay
- Battery Life
- Use JPEG over PNG and PNG8 over GIF
- Minimize the DOM
- Avoid reflows and repaints
- Minimize Javascript (size and activity)
- No JavaScript animations
- Do you really need library/framework?
- Use darker colors if you can (only for OLED, LCD doesn’t matter)
- Latency
- Reduce number of DNS look ups
- Reduce HTTP requests
- Don’t redirect
- Use data URIs
- Use sprites (not too big – memory issues)
- Leverage localStorage
- Memory
- Reduce file size
- Use tools (ImageAlpha, TinyPNG)
- Use PNG8
- Reduce image size
- Serve the right image
- Use media queries
- Tools (sencha.io)
- <picture>
- srcset attribute
- Clown Car Technique
- Object tag loads an SVG image
- Media queries in SVG image to serve up different PNGs
- Use fonts when you can
- Reduce file size
- Various screen sizes
- Phones aren’t laptop
- More powerful browsers, less powerful CPUs
- UI Responsiveness