Blog
SquishPixel Blog, page 4
-
Landing page photos were JPEGs renamed .webp, and two went to visitors at full size
A DEV Community post details three JPEGs renamed .webp, mislabelled by the server, and two served unoptimised through CSS backgrounds at 1.87 MB.
-
Next.js image defaults allow 15 widths, one quality and no AVIF unless you change them
A DEV Community post probes the default Next 16.2.7 image endpoint and finds fixed widths, one quality, WebP only and a revalidating cache header.
-
Convert CMYK JPEG uploads to sRGB with sharp, not with a formula
A DEV Community test shows sharp converts CMYK JPEGs to sRGB by default, while the common one-line pixel formula gets colours badly wrong.
-
Developer guide: choosing and shipping business website images that stay fast
DEV Community guide covers picking real photos, sizing, WebP, compression, alt text, licensing and responsive image code for faster business sites.
-
Stripping WebP from Chrome's Accept header mostly just gets you AVIF, test finds
A DEV Community test of five image hosts found that removing WebP from the Accept header usually returns AVIF, not JPEG, on large image CDNs.
-
Linear light resampling keeps detail but can cost shadow accuracy, tests show
A DEV Community author tested linear light resizing on a photo and found it keeps more detail but loses shadow accuracy, banding risk and sharpening quality.
-
Font preloads delayed first paint by 3.7 seconds on a slow connection, a developer's tests show
A DEV Community post finds ten font preloads slowed first paint on a throttled link and caused a late layout shift, then explains the fixes the author plans.
-
Which product grid images should never be lazy loaded, according to DEV Community
A DEV Community post explains which images on store pages should load straight away, and which can wait until the visitor scrolls.
-
AVIF first, WebP as fallback is the advice for image-heavy product pages
A DEV Community post says image-heavy sites should serve AVIF first with WebP as fallback, and test both formats on their own fine-texture images.
-
Why lab scores and CrUX field data can differ when page loads are incomplete
A DEV Community post explains why a green lab score and an amber field score can both be right, and how partial loads and navigation types shape CrUX data.
-
Re-encoding a JPEG in a browser canvas can make the file bigger, tests show
Tests of 25 photos found canvas re-exports at JPEG quality 0.92 grew some files in all three browser engines, and size targets did not prevent it.
-
Reserve space for images before they load to stop text jumping
DEV Community explains how width and height attributes let browsers reserve room for a photo, so text below it stays put while the file downloads.