4 ms·
I lead frontend development on a medium-sized US eCommerce shop for a few years. We prefetched JS bundles for likely page hits (e.g. grabbing category bundles w
by lelandfe 5y ago
I lead frontend development on a medium-sized US eCommerce shop for a few years. We prefetched JS bundles for likely page hits (e.g. grabbing category bundles when users land on the homepage).
It improved performance a decent bit, though the far majority (>85%) of the site's users are on iOS, so RUM didn't show a big effect.* Hopefully the Safari team brings that to a stable release soon!
*also why I dislike the focus from web.dev and family on CrUX. Fully 2 of the 4 Web Vitals are unmeasurable outside of Chromium[0], and CrUX only includes reporting from Chrome users anyway... I really wish they had delayed the SEO impacts of this stuff until there were usable analogs in competing browsers. That that caveat is not surfaced on Lighthouse/PSI reports does not make me happy either.
[0]https://github.com/GoogleChrome/web-vitals#browser-support https://github.com/GoogleChrome/web-vitals#browser-support