Kann das Laden von bestimmten img zunächst verhindert werden?
bearbeitet von
@@Rolf B
> Lass das src Attribut ganz weg.
Und beim Validator schrillen die Alarmglocken. Die kann man ignorieren …
Oder das `src`-Atrribut befüllen. @Camping_RIDER erwähnte eine 1px-Grafik – so’n Spacer-GIF hat man doch sicher noch in der Mottenkiste.
Den HTTP-Request kann man aber vermeiden, indem man eine Inline-Grafik verwendet, bspw.
`<img src="data:image/svg+xml,%3Csvg%3E%3C/svg%3E" alt=""/>`{:.language-html}[^1]
[^1]: `%3C` und `%3E` sind die Escapes für `<` bzw. `>`.
🖖 Live long and prosper
{:@en}
--
*“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”*{:@en}
— Bruce Springsteen, Manchester 2025-05-14