Skip to content

Scrolling causes a noticeable stutter on Docusaurus v2 websites #4454

@RA80533

Description

@RA80533

🐛 Bug Report

Scrolling causes a noticeable stutter on Docusaurus v2 websites

To Reproduce

  1. Go to the docs section on the Docusaurus v2 website
  2. Scroll to the top of the page
  3. Attempt to scroll further upwards

Expected behavior

Docusaurus v1

Screen Shot 2021-03-17 at 9 01 38 PM

Maximum CPU Usage: 22.0%

  • Timers
    • 5 × setTimeout
  • Events
    • 44 × scroll

Actual Behavior

Docusaurus v2

Screen Shot 2021-03-17 at 9 57 53 PM

Maximum CPU Usage: 96.1%

  • Events
    • 160 × wheel
    • 42 × scroll
    • 7 × message
    • 3 × mousemove
    • 2 × pointermove
  • Observers
    • 889 × IntersectionObserver

Your Environment

  • Public site url: https://v2.docusaurus.io
  • Docusaurus version used: 2.0.0-alpha.72
  • Environment name and version: Safari 14.0.3 (14610.4.3.1.6)
  • Operating system and version: macOS 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions