Neocities.org

hogsite

hog.neocities.org

280,758 views
284 followers
7,915 updates
0 tips
Does anyone know if there's a way to put loading="lazy" on all images using CSS? I tried "img{loading: lazy;}", but it doesn't do anything. I just want a way to do it in CSS easily, so I don't have to do it in HTML manually for several hundred individual images
3 likes
ribose 8 months ago

i've searched for this in the past and only found results about how to do it w/ javascript. not sure it's possible with css.

1 like
ribose 8 months ago

my recommendation is to use a code editor with find and replace, then replace every '<img' with '<img loading="lazy" '

1 like
webcatz 8 months ago

the neocities editor has find and replace too. ctrl/cmd + f depending on whether youre on windows or mac, and theres a little unfolding bit to use replacing

1 like

Website Stats

Last updated 3 months ago
CreatedMar 31, 2021
Site Traffic Stats

Tags

hog funny furry eatingmulch animals