Skip to content

API navigation is slow due to smoothScroll configuration #2037

Closed
@sdouglas

Description

@sdouglas

Navigating to different API entries via the anchor links on the left-hand table of contents (TOC) can be extremely slow.

For example, try clicking one of the top links in the left column, e.g. #Global-Config, and then scroll to the bottom of the TOC and click a link near the bottom, e.g. #Server-Side-Rendering. I clocked the scroll time at nearly 30 seconds.

Personally I'd favor just dropping smoothScroll entirely. However, if you wish to keep it, according to the docs you might reconfigure it with the option speedAsDuration: true so all scrolls will take the same amount of time.

https://github.com/vuejs/vuejs.org/blob/0d9b754b2f31eb77b2c7767aac2b943a2f8775bd/themes/vue/source/js/common.js#L412

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions