Lesson: Before adding complexity, check if the platform has already solved your problem for you.
#developer #coding #programming
Lesson: Before adding complexity, check if the platform has already solved your problem for you.
#developer #coding #programming
The browser does the hard work:
- Supports AVIF? → loads AVIF
- Doesn't? → falls back to WebP
- Still in the past? → falls back to JPEG
✨ Result: 40% smaller payloads, higher Lighthouse scores, with no infrastructure complexity.
The browser does the hard work:
- Supports AVIF? → loads AVIF
- Doesn't? → falls back to WebP
- Still in the past? → falls back to JPEG
✨ Result: 40% smaller payloads, higher Lighthouse scores, with no infrastructure complexity.
Honestly, I would prefer a standard upgrade to the old package.
Honestly, I would prefer a standard upgrade to the old package.
Don't let your developer's tunnel vision push you towards complex solutions.
Step outside your comfort zone → sometimes the most straightforward fix is the best.
Don't let your developer's tunnel vision push you towards complex solutions.
Step outside your comfort zone → sometimes the most straightforward fix is the best.
No infra changes.
No new tools.
No complexity.
No infra changes.
No new tools.
No complexity.
- WebP: ~30% smaller than JPEG
- AVIF: up to 50% smaller (with no visible quality loss)
- WebP: ~30% smaller than JPEG
- AVIF: up to 50% smaller (with no visible quality loss)
Even compressed, they’re no longer optimal.
Even compressed, they’re no longer optimal.
My instinct? "I need a CDN or smarter caching."
But the root cause wasn't infra. It was… images.
My instinct? "I need a CDN or smarter caching."
But the root cause wasn't infra. It was… images.