You know the feeling – you're reading something online over a connection that's not lightning fast, and just as you're getting absorbed, an image loads at the top of the page and the paragraph leaps down, breaking your concentration. Thankfully, a forthcoming Firefox update will put an end to that problem.
As ZDNet reports, the feature (called 'scroll anchoring') is part of a web standard that's currently being developed by the World Wide Web Consortium (W3C).
"Scroll anchoring aims to minimize surprising content shifts," explains W3C's documentation. "It does this by adjusting the scroll position to compensate for the changes outside the viewport."
It's particularly useful on mobile devices, where the smaller screen means content is more likely to be pushed off the screen as things load higher up.
About time
Although the standard is still a work in progress, Firefox is a little late to the game here, with Google being the first to implement scroll anchoring in Chrome back in 2017.
Opera and Baidu soon followed suit, but Microsoft and Apple hung back, with no support for the standard in Internet Explorer, Edge or Safari.
The feature is enabled in the current Firefox nightly build, and is expected to be added to the stable release of Firefox 66 in March.
from mohammadahte http://bit.ly/2sthBVW
0 Comments