Web performance: The Dangers of background images
Dangerous code
Assume, you've code where you get images from a CMS.
These images should be background images that keep changing.
You approach it in a way where you map out the images and set them as background images.
import React from "react";
cons...
tigerabrodi.blog2 min read
huy le
Bro I’m a bit puzzled here—when I tested this, I didn’t see background images loading sequentially or blocking the CSS parser. My understanding is:
The stylesheet is render-blocking, but images in background-image: url(...) don’t block CSS parsing; they’re requested in parallel with prioritization.
Am i missing something?