nbn-upgrade-map icon indicating copy to clipboard operation
nbn-upgrade-map copied to clipboard

Improve mobile site performance

Open LukePrior opened this issue 2 years ago • 11 comments

image image

https://pagespeed.web.dev/analysis/https-lukeprior-github-io-nbn-upgrade-map/oo8n14u5jd?form_factor=mobile

LukePrior avatar Jul 13 '23 11:07 LukePrior

Related https://github.com/LukePrior/nbn-upgrade-map/issues/82

lyricnz avatar Jul 14 '23 22:07 lyricnz

It may be worse now

image

And it's not great on Desktop either

image

But that may just be a bad cache-miss

image

lyricnz avatar Nov 11 '23 01:11 lyricnz

I think as long as it's all hosted on GitHub we will have some limitations but I'm not seeing many complaints about performance...

LukePrior avatar Nov 16 '23 07:11 LukePrior

Will wait for 28 days from service worker rollout to see if that helped at all.

LukePrior avatar Nov 19 '23 06:11 LukePrior

Seems to have improved on both to acceptable levels for everything but INP

LukePrior avatar Dec 26 '23 01:12 LukePrior

Now that INP is a core metric, I focused on reducing the blocking main thread work when loading the markers into Leaflet.

This has helped slightly and it seems to be trending down over the last week, will need to wait for complete 28 day period to confirm.

Mobile image

Desktop image

LukePrior avatar Mar 15 '24 07:03 LukePrior

INP is good on desktop now but on mobile it's still not great, but I think to get it any lower is going to require significant engineering effort potentially writing a webgpu driver but I don't really feel like doing that. Screenshot_20240520_190912_Brave Screenshot_20240520_190904_Brave

LukePrior avatar May 20 '24 09:05 LukePrior

Screenshot_20240826_214126_Brave Screenshot_20240826_214118_Brave

Desktop remains completely stable and good, mobile fluctuates more than I would expect. Trending positively for LCP, and INP but regressing on CLS.

Any specific suggestions for site improvement are welcome.

LukePrior avatar Aug 26 '24 12:08 LukePrior

I've migrated the site to a custom domain with CloudFlare proxy enabled, also utilising jsDelivr CDN for distribution of files which should both help performance a bit.

LukePrior avatar Aug 27 '24 17:08 LukePrior

Future optimisations might include a better leaflet renderer including for clustering and additional compression of source files

LukePrior avatar Aug 27 '24 17:08 LukePrior