Closed Bug 1280770 Opened 8 years ago Closed 8 years ago

Smarter scrolling on loading pages

Categories

(Core :: Layout, enhancement)

48 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 60307

People

(Reporter: zeusex81, Unassigned)

Details

When a page is loading and contains images, we don't know their size and once they've downloaded the page is potentially resized depending on various css rules.
Problem, if the flow is deformed by an image upper in the page (because we've scrolled or used an anchor link) we can see the content moving, we can scroll trying to follow our last position but the page continues to be resized by images succecively loading and it's very boring.
On Chrome they kinda fixed it with anchors links, whenever the page is resized you stay on your anchor, but as soon as you start scrolling it gets broken.

I've imagined a script that automatically scroll to our last position when the page is resized : https://greasyfork.org/fr/scripts/20299-smart-scrolling
And here is a page with plenty images to test it : http://www.rpg-maker.fr/index.php?page=forum&id=25626&deb=fin#fin
Ctrl+F5 to try before/after because the "bug" is not visible if images are already in cache.
It's not perfect but it would be great if you could implement something similar, maybe more efficient, directly into firefox.
(In reply to zeusex81 from comment #0)
> When a page is loading and contains images, we don't know their size and
> once they've downloaded the page is potentially resized depending on various
> css rules.
> Problem, if the flow is deformed by an image upper in the page (because
> we've scrolled or used an anchor link) we can see the content moving, we can
> scroll trying to follow our last position but the page continues to be
> resized by images succecively loading and it's very boring.
> On Chrome they kinda fixed it with anchors links, whenever the page is
> resized you stay on your anchor, but as soon as you start scrolling it gets
> broken.
> 
> I've imagined a script that automatically scroll to our last position when
> the page is resized : https://greasyfork.org/fr/scripts/20299-smart-scrolling

We can't ship something like this script by default because it would heavily impact page loading performance, as it runs script (that repeatedly requests all images in the DOM...) after every rendering step.

The core issue here has been known for a very long time and is effectively bug 60307 or one of its deps.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Component: General → Layout
Product: Firefox → Core
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.