Skip to content
Discussion options

You must be logged in to vote

When we parse the response to show it visually as formatted JSON we are converting it to a bunch of html elements. 1.5mb of text turns into about 8mb of html. Beyond this size the app was often crashing/freezing as parsing was so slow. The limit was set to avoid this.

I have offloaded large file payloads to a worker, but even still there were performance issues when rendering that markup on the main thread.

https://github.com/warrenday/graphql-network-inspector/blob/master/src/hooks/useHighlight/index.ts

Possible solutions would be incremental rendering with virtual scrolling. So only render what is on screen.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JC-Ge
Comment options

Answer selected by JC-Ge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants