Jason Knight
Oct 2, 2021

--

Sadly that's caused by how the browser implementation of loading="lazy" works. I'd still take that shortcoming over adding all the extra scripting and hooks, because at least it's browser native. The only thing the script actually does is hook the load event, so when/where the loading happens is entirely up to the browser, not my script.

Which means FF and Chrome-likes behave different. Blink always scrolls to top on reload, whilst gecko stays scrolled down.

If only browser makers would agree on how all this stuff is supposed to work!

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

No responses yet