Neocities.org

hogsite

hog.neocities.org

190,244 views
239 followers
7,661 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 1 month 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 1 month ago

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

1 like
webcatz 1 month 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 1 hour ago
CreatedMar 31, 2021
Site Traffic Stats

Tags

animals hog funny furry eatingmulch