[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tech/ - Technical SEO

Site architecture, schema markup & core web vitals
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793125627978.jpg (210.06 KB, 1024x1024, img_1793125619288_myr2r1kl.jpg)ImgOps Exif Google Yandex

f2ec2 No.2399

I've been looking at our latest build and the service worker is grabbing way too much during the initial install. It's trying to cache every single chunk from the build manifest instead of just the critical path assets.
>It's fine as long as the user has a fast connection.
Great Risky for anyone on mobile data or shaky subway wifi.

self.addEventListener('install', (event) => {event.waitUntil(caches.open('v1').then((cache) => {return cache.addAll(['/', '/main.js', '/styles.css']);}));});


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]