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
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
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.
my recommendation is to use a code editor with find and replace, then replace every '<img' with '<img loading="lazy" '
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