Slide 1

Slide 1 text

Nishu Goel Dear non-performant app,

Slide 2

Slide 2 text

Nishu Goel Dear app, performant non-performant

Slide 3

Slide 3 text

Nishu Goel @TheNishuGoel NishuGoel

Slide 4

Slide 4 text

Why are discussing performance? bit.ly/dear_performant_app

Slide 5

Slide 5 text

Why are discussing performance?

Slide 6

Slide 6 text

Core Web Vitals - loading, - interactivity, - and visual stability bit.ly/dear_performant_app

Slide 7

Slide 7 text

LCP Largest Contentful paint 2.5 seconds 4 seconds

Slide 8

Slide 8 text

FID First Input delay 100 ms 300 ms

Slide 9

Slide 9 text

CLS Cumulative layout shift 0.1 0.25

Slide 10

Slide 10 text

LCP (Largest Contentful paint) 2.5 seconds 4 seconds let’s work towards the we need to unblock our render, and make it show up faster

Slide 11

Slide 11 text

LCP (Largest Contentful paint) 2.5 seconds 4 seconds let’s work towards the Inline fonts Inline critical CSS Optimise files Preload important resources Lazy load resources Serve adaptive navigator.connection.effectiveType === '4g' , critters use imagemin, use CDN, responsive images, newer formats (webp, jpeg2000)

Slide 12

Slide 12 text

FID (First input delay) 100 ms 300 ms let’s work towards the Our page needs to be interaction ready and respond quicker

Slide 13

Slide 13 text

FID (First input delay) 100 ms 300 ms let’s work towards the Defer unused Javascript (code splitting, async/defer) Minimise unused polyfills import {lazy} from “React” const AddEditWebsite = lazy(() => import(‘./add-edit-website')); type=module / nomodule

Slide 14

Slide 14 text

CLS (Cumulative layout shift) 0.1 0.25 let’s work towards the Our page elements need to NOT jump and please the users’ eyes

Slide 15

Slide 15 text

CLS (Cumulative layout shift) 0.1 0.25 let’s work towards the Give dimensions to images, iframe etc. elements dynamic content only when user is expecting it bit.ly/dear_performant_app

Slide 16

Slide 16 text

Weak Ref & Finalizers https://nishugoel.medium.com/heard-of-weak-refs-in-javascript-1132b3c1c44 bit.ly/dear_performant_app

Slide 17

Slide 17 text

thank you. bit.ly/dear_performant_app