Bug 842483
Summary: | Interaction of codetabs and named anchors | ||
---|---|---|---|
Product: | [Other] Topic Tool | Reporter: | Joshua Wulf <jwulf> |
Component: | FUDCon Docs Hack | Assignee: | Joshua Wulf <jwulf> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Joshua Wulf <jwulf> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | lcarlon, topic-tool-list |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-26 01:29:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 838277 |
Description
Joshua Wulf
2012-07-24 01:17:41 UTC
Fixed it by grabbing the hash from the window.url when the script starts, then scrolling to that hash once it finishes. Leads to some jumpiness when the page loads, but it's subtle, and amidst the rendering going on is not really noticeable in the tests I've run so far. This fix serendipitously fixes a bug in Firefox behaviour: https://bugzilla.mozilla.org/show_bug.cgi?id=60307 If you open a huge html-single book to a named anchor, Firefox will scroll to the anchor *then* load the images. The result is the jump away from the anchor. It happens so fast that you usually can't see what is occurring. It's a hold-over from 10 years ago when bandwidth was the issue, and on a huge page like that the user would have manually scrolled away a long time ago. Reading through the history, they first had a bug that Firefox waited for the page to load before scrolling, and that took a long time. So they made it scroll immediately on text load. The next complaint was that it lost its place. So they made it scroll twice -once on the page initial load, then after the images loaded. Then they got a complaint that this was random-appearing behaviour when a user had scrolled manually between the text and image loads, so they turned off the second scroll. Chrome doesn't have this behaviour because it scrolls after the page loads - it was born in an age where bandwidth was not such a significant factor. The issue now is when a user does manually scroll while the page is being rewritten. Is there a way to detect if the page has been manually scrolled? If so, we can conditionalize the rejump on that. We're in a similar issue. Bandwidth and image loading is not our constraint, but the processing and rewriting of the DOM. The javascript is asynchronous to not make the page load time increase, however it leads to rewriting of the page while the user is looking at it. We might look at doing some things asynchronously, and others synchronously. Or displaying an overlay while we do intensive recomputation of the page. |