Skip to content

docs-infra: scroll position restoration improvements #28332

Closed

Description

@gkalpak

Scroll position restoration was added to the angular.io app in #28037.
Here are some possible improvements to consider:

  • Add throttling/debouncing in storing scroll position on scroll here, since it is relatively expensive and the scroll event can be emitted several times per second. See, also, this comment.
  • Document under what circumstances checking for manual scroll restoration support here may throw.
  • Scroll the scroll position retrieved from history state in sessionStorage here, to avoid a race-condition with navigating forward/back and immediately reloading. See, also, this comment.
  • Remove unnecessary(?) try/catch block here. See, also, this comment.

Activity

  1. added
    feature
    target: patch
    on Jan 24, 2019
  2. added this to the Backlog milestone on Jan 24, 2019
  3. gkalpak commented on Feb 6, 2019

    @gkalpak
    MemberAuthor

    Fixed by #28368.

  4. angular-automatic-lock-bot commented on Sep 14, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretarget: patchtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions