Improve website speed on slow networks
Created by: 25prathamesh
covid-19 site loads slow on 3G mobile network it takes 5 second for first paint. lot of indian users are on slow network.
There are lot of things we can do but right now below are some quick fix -
- adding preconnect tags for www.googletagmanager.com & api.covid19india.org , so till css & javascript gets downloaded , dns & tcp connection will resolved for this domain , this will remove waiting time
- lossless compression for images , example icon.png file is 18Kb if lossless compression applied it will be 5kb only
- add font-display:swap; property while defining fonts , swap property will ensure rendering will not blocked till fonts file gets downloaded. browser will render with system font & once font downloaded it will applied on texts.