Gunnar Bittersmann: (vorläufig) gelöst, Stresstest kommt noch

Beitrag lesen

problematische Seite

@@Rolf B

document.querySelectorAll("body")[0].offsetHeight

also, es ist nicht falsch. Aber SOWAS von hinten durch die Brust ins Auge!

Und zwar SOWAS von, dass ich es ‚falsch‘ nennen würde.

Es verstößt gegen das KISS-Prinzip.

Wenn es document.body nicht gäbe, sollte man document.querySelector("body") verwenden.

Gibt es aber. Also:

Besser:

A/k/a ‚richtig‘

document.body.offsetHeight

🖖 Live long and prosper

--
“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.”
— Bruce Springsteen, Manchester 2025-05-14