Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage when browsing API documentation #6066

Closed
yafietdanialecode opened this issue Oct 29, 2023 · 5 comments
Closed

High CPU usage when browsing API documentation #6066

yafietdanialecode opened this issue Oct 29, 2023 · 5 comments
Labels

Comments

@yafietdanialecode
Copy link

URL:

https://nodejs.org/dist/latest-v20.x/docs/api/

Browser Name:

Every browser showed this

Browser Version:

firefox 119.0 (64-bit) , edge (Version 118.0.2088.69 (Official build) (64-bit))

Operating System:

windows 10

How to reproduce the issue:

Hard/Unwanted/Unlimited loop function is making the site to stop on some amount of time interval

  • there is some kind of loop function going on the /docs website that prevents clients from scrolling and clicking and takes over CPU usage.
  • I checked if it was a browser problem but this issue occurred on browsers like ( firefox, Firefox Developers, chrome, edge, and Brave)
  • please check the client-side code if there is some kind of hard loop function for the browser.
@bmuenzenmeyer
Copy link
Collaborator

i will start investigating by opening the page and trying to recreate

@mikeesto
Copy link
Member

Thanks for the report. I wasn't able to reproduce this with Chrome but perhaps others will be able to. I kept the page open for a while and then profiled it, which all seemed normal -

6 ms  Scripting
29 ms  System
10347 ms  Idle
10383 ms  Total

Are you sure you linked to the correct page? And do you have any screenshots of the high CPU usage (whether through the task manager, browser dev tools or otherwise)? Thanks

@mikeesto mikeesto changed the title node js website some how creates i think a loop that in some amount of time interval, and this makes the site to stop working on some features in some interval and some amount of time. this problem prevents users from scrolling, clicking button and link and it can consume over cpu usage High CPU usage when browsing API documentation Oct 30, 2023
@bmuenzenmeyer
Copy link
Collaborator

also cannot recreate

@ovflowd
Copy link
Member

ovflowd commented Oct 30, 2023

This is the source JS for API Docs: https://github.com/nodejs/node/blob/main/doc/api_assets/api.js I don't see anything obvious there that would create high CPU usage

@bmuenzenmeyer
Copy link
Collaborator

I am going to close this as not reproducable - @yafietdanialecode if you can find reliably replicate this on multiple devices please let us know. On my Windows machine everything seems fine, and we have not had any other reports.

@bmuenzenmeyer bmuenzenmeyer closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants