Re:Scroll Anchoring in Firefox 66
by redwall_hp on Friday March 29, 2019 @05:05PM
(#19525676)
The weird thing is it used to be less of a problem, because people used the damned height and width attributes in the img element. So the browser could calculate the dimensions before and lay the document out correctly before the slow loading images came in.
Now people largely ignore them, use publishing tools that don't bother, and dynamically build pages with garbage scripts instead of having a sane document already marked up.
It's not that sites are intentionally scrolling ads into view. In the rare cases where they do that, scroll anchoring won't make any difference anyway. Usually what happens is that the content just changes position randomly, whether or not the ad is even within the viewport.