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

bug: huge console.log will crash the browser #2133

Open
jimniels opened this issue Dec 17, 2024 · 1 comment
Open

bug: huge console.log will crash the browser #2133

jimniels opened this issue Dec 17, 2024 · 1 comment
Labels
type: bug something is broken type: papercut annoying but not the end of the world

Comments

@jimniels
Copy link
Collaborator

Open a blank file and enter this code for a javascript cell

let res = await fetch("https://github.com/LeoDog896/npm-rank/releases/download/latest/raw.json");
let data = await res.json()

console.log(data)

Then go to the console tab and try viewing the output. It slows down the page tremendously and, in some cases, makes me end up on the "Aw snap" page of chrome (cause the tab crashed).

We should probably do something to protect against logging too much in the console. Something where we just trim it off and like 10,000 lines and just say "500,000 more lines" or something

@jimniels jimniels added type: papercut annoying but not the end of the world type: bug something is broken labels Dec 17, 2024
@davidfig
Copy link
Collaborator

Alternatively, we can window the console so this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug something is broken type: papercut annoying but not the end of the world
Projects
Status: No status
Development

No branches or pull requests

2 participants