@@Henry
Da ich aber weder das Attribut, noch ein Hinweis darauf auf den img Seiten, im Wiki hier gefunden habe, nehme ich mal an es gibt doch noch Gründe das nicht unbedingt immer zu nutzen?
Falsche Annahme. SELFHTML hat weder die Manpower noch das Wissen, sämtliche Seiten im Wiki auf aktuellem Stand zu halten.
MDN ist da besser aufgestellt. img / loading
OK, einen würde ich kennen, der Browser erkennt die Bildgrösse erst nach dem Laden
Wenn die Bildgröße mittels width
- und height
-Attributen angegeben ist (was man i.d.R. tun sollte), dann kennt der Browser die Bildgröße schon vor dem Laden – und hält den Platz entsprechend frei, auch wenn das Bild mit CSS noch skaliert wird.
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon