3 ms·
One of the frustrating things about being a web developer is that I can do a ton of advanced optimization to the point of code splitting my js with dynamic impo
by uses 5y ago
One of the frustrating things about being a web developer is that I can do a ton of advanced optimization to the point of code splitting my js with dynamic import() or doing page level caching, lazyloading, and splitting non-critical CSS. But other departments of my org can squash it by adding a chat plugin with a disgusting level of resource abuse which obliterates all the advances I've made.
My approach is to just explain what I can or can't do, and explain the trade-offs for everything. I'll give the decision-makers the info but I'm not going to be the curmudgeon going to war over something the marketing people say we need to survive.
- kmeisthax 5y agoDNS resolution 12ms First-byte time 64ms CSS & JavaScript 148ms Analytics 3,157ms Images 250ms someone who is good at the web please help me budget this. my store is slow
- cocoafleck 5y agoWell clearly we can't remove analytics, and if we changed analytics to a different (faster) provider someone would have a cow... We could lower our image sizes, but let's be honest that would result in the dreaded JPGing. Our Javascript is a hand crafted wonder that we just rebuilt for the 6th time in the past decade in a new modern better framework so clearly that cannot be the problem. Therefore I'm leaning towards adding a CDN to lower the first byte time, or yelling at our DNS provider to speed up their side. /s
- easrng 5y agoJust load the analytics async, ezpz