A Billion People and Even More Phones

A presentation at #PerfMatters in April 2019 in Redwood City, CA, USA by Keerthana Krishnan

Slide 1

Slide 1

A Billion Phones and Even More People Optimizing the web for the next billion

Slide 2

Slide 2

Keerthana Krishnan ● Baker Hughes, a GE CompanyBaker Hughes, a GE Company ● Full Stack Web Developer ● Based in Cochin, India

Slide 3

Slide 3

Why do we need performance? Fast applications = Happy users

Slide 4

Slide 4

Where do users come from? China - 1400M India - 1300M - (45%p) - 627M users USA - 325M - (84%p) - 275M users

Slide 5

Slide 5

Data last collected in 2016 87 80 75 24 22 Source: World Bank

Slide 6

Slide 6

Why do we need this? ▶ Market saturation of technical products in the first world ▶ Larger number of users getting access to the internet ▶ Basically, access to larger number of people who use your services

Slide 7

Slide 7

Finding the right balance Performance <-> Accessibility <-> User Experience

Slide 8

Slide 8

Story #1 Internationalization The easiest barrier

Slide 9

Slide 9

Slide 10

Slide 10

Slide 11

Slide 11

Case #1 – Uber ▶ Imagine a user in India/ Ghana/ Kenya/ Nigeria for Uber who is NOT a native English speaker ▶ Enabling native languages improves access to users from diverse regions

Slide 12

Slide 12

Improving internationalization ▶ Use HTML lang code <html lang=”en-US”> … </html> ▶ Use universal icons/ images/ sounds (non-written/ language agnostic communications) https://assets.kpmg/content/dam/kpmg/in/pdf/2018/05/IndiaTrends2018-Trends-shaping-Digital-India-Internet.pdf

Slide 13

Slide 13

Story #2 - Handling real world devices Going beyond the iPhone

Slide 14

Slide 14

A family of mobile devices grandpa mom dad

Slide 15

Slide 15

Hardware is created UNEQUAL ▶ Can your website handle the sizes and shapes? ▶ Cracked screens, cramped spaces – places where your CSS quick fixes come to die

Slide 16

Slide 16

Mobiles with less than 2GB RAM vs. your website built with the latest & coolest JS frameworks = LOADING.GIF (for a long time)

Slide 17

Slide 17

Story #3 – Oh no, the Wi-fi! Handling a narrow bandwidth

Slide 18

Slide 18

WiFi in India - A closer look ▶ Wifi definition - 10 Mbps to 300 Mbps ▶ Actual average connection speed 3.465 Mbps Source : https://www.webworldwide.io/country/india

Slide 19

Slide 19

How does your website perform in 3G, 2G, H+, … If loading > 2s, user interest plummets

Slide 20

Slide 20

Test your website on CRAPPy phones with SLOW speeds!! Have a fall back for bad specs

Slide 21

Slide 21

How can I simplify my website? ▶ Min. number of downloads on first click ▶ Pre-loading parts of the websites ▶ Optimizing video usage ▶ Use svg(s) - get Drasnered today!

Slide 22

Slide 22

Bonus point for UX! Adding a little extra for your users

Slide 23

Slide 23

Slide 24

Slide 24

Create a demo mode! ▶ Have a help setting that explains the major moving parts ▶ Use Arrows, icons and more to help users navigate your product

Slide 25

Slide 25

In summary … ▶ Internationalization of your website ▶ Optimize for non standard aspect ratios ▶ Fall backs for slow internet

Slide 26

Slide 26

Q&A Yes, 5 mins more to breaktime!

Slide 27

Slide 27

@keerthanak17

Slide 28

Slide 28

Thank you! That’s all I have today ☺