observablehq / inspector

The Observable standard inspector.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The inspector hangs on large strings.

mbostock opened this issue · comments

It can render a large array no problem, but it chokes on a large string. For example, here’s 10MB string that causes the notebook to not respond:

https://observablehq.com/d/e636d2d7612777e5

It looks like this is a result of lag from the DOM — perhaps long single-line strings should be truncated in a similar manner to multiline ones?