Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any Internal memory limit in Google chrome browser for loading JSON data using javaScript ??

The steps that I have done is given below !!

1)Copy the Index .html and flare.json file from the following link- http://bl.ocks.org/mbostock/4063269

2)Add more data to the flare.json file.

3)run the index.html file
while loading more than 5 mb JSON file the browser crashed with the script error

Can any one tell why the chrome browser showing unresponsive script error ?
When a single tab of chrome using more than 248 mb,getting unresponsive script error,
If we give continue the same tab will use 1.5 gb memory !!
Posted
Comments
King Fisher 15-Apr-15 1:20am    
Did you try with other Browser?
Jeena nath 15-Apr-15 1:25am    
Mozilla will crash when the JSON file size is more than 850kb with unresponsive
script error !!
it uses 100 mb memory !!


1 solution

Refer - Maximum json size for response to the browser[^].
Quote:

An HTTP response has no size limit. JSON is coming as an HTTP response. So it has no size limit either.


There might be problem if the object parsed from JSON response consumes too much memory. It'll crash the browser. So it's better you test with different data sizes and check whether your app works correctly.


I think lazy-loading is the best approach for such large amounts of data. Especially when dealing with object literals.


See High Performance Ajax Application presentation from Yahoo.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900