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

Too many DOM nodes generated from large JSON documents #17

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments
Open

Too many DOM nodes generated from large JSON documents #17

GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

We need to find a way to limit the number of DOM nodes in our formatted output.

Loading a large document causes the browser's interface to freeze, sometimes 
for several minutes in my testing. The formatting must be moved out of the 
stream converter so that it can happen asynchronously after the browser has 
displayed something. The entire formatted output should not be added to the 
page in one operation, even asynchronously this would cause a freeze.

We could either add more nodes as the user scrolls down to gradually build the 
formatted output (easier) or only insert DOM nodes that would be visible and 
remove them when scrolled out of view (cooler and I like a challenge :D ).

Original issue reported on code.google.com by [email protected] on 3 Jun 2011 at 10:03

@GoogleCodeExporter
Copy link
Author

Related to this, 2/3 of the time spent frozen is caused by CSS 
:before{content:''} rules...

Original comment by [email protected] on 8 Jun 2011 at 11:10

@GoogleCodeExporter
Copy link
Author

Hi, I am also facing this issue. When loading a large json my browser gets 
unresponsive and scrolling becomes very slow.

Original comment by [email protected] on 2 Feb 2012 at 4:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants