Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3760784
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:31:29+00:00 2026-05-19T10:31:29+00:00

I was wondering does anyone know what are the limits of dom for example.

  • 0

I was wondering does anyone know what are the limits of dom for example.

If I have a json object

var json = {}

and this json object had its own objects inside, including arrays,other objects, or event plain text.

how many child objects can json hold if there is a limit, and also what if the object was dynamically increased in size would this ever display an error? because there is no more memory to handle it etc…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:31:30+00:00Added an answer on May 19, 2026 at 10:31 am

    I don’t believe there are hard limits, but I was curious to see what would happen, so I wrote a little ad hoc test script:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
        <head>
            <script language="javascript">
                window.onload = function() {
                    var data = [];
                    var i = 0;
    
                    var addData = function() {
                        var arr = [];
                        i++;
    
                        for(var j=0; j<10000; j++) {
                            arr.push({
                                id: i + j,
                                name: "item" + j,
                                number: i * j,
                                date: new Date(),
                                email: "long_email" + i + "@domain" + j + ".com"
                            });
                        }
    
                        data.push(arr);
                        document.getElementById("result").innerHTML = i.toString();
                        window.setTimeout(addData, 1);
                    };
    
                    addData();
                };
            </script>
        </head>
        <body>
            <div id="result"></div>
        </body>
    </html>
    

    The script builds a giant array. In each iteration, a smaller array is created with 10,000 objects and pushed to the main array. Each object contains 5 members: 2 numbers, 2 strings and 1 date. I count the number of iterations.

    I tested this script on two computers, except for IE7 and IE8 for which I only had one computer available. The first computer runs Windows XP with 2GB ram, the second computer runs Windows 7 with 4GB ram.

    I got the following results:

    • IE 7: the counter stopped at 52 before it froze. The browser became completely unresponsive. No warning was shown. I had to kill the process.
    • IE 8: the counter went as far as 108. The browser became completely unresponsive. No warning was shown. I had to kill the process.
    • Firefox 3.6: the counter went to 289 on the first computer and 580 on the second. At this moment a warning was shown (A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.) Since the browser was very unresponsive, I stopped the script.
    • Opera 11: the counter went to 235 on the first computer and to 232 on the second. The browser was a little laggy. No warning was shown.
    • Chrome 8: the counter went to 327 on both computers, so it looks like a hard limit was reached. The browser was still very responsive. No warning was shown.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello: I have been experimenting with WPF this afternoon, Im wondering does anyone know
I was wondering does anyone know if its possible to open a wifi and
Example RSS feed link: http://twitter.com/statuses/user_timeline/twitter.rss Does anyone know if Twitter limits calls to a
Does anyone know if something like this is possible in Scala: case class Thing(property:String)
I am wondering does anyone know if it is possible to render html in
I was wondering does anyone know any PHP Pdf generation libraries that support absolute
Does anyone know how the cancelAllLocalNotifications method works on UIApplication? I'm wondering specifically how
Does anyone know if Spring has any extensions that allow for configuring its ApplicationContext
does anyone know if you can do something like this using the (N)Hibernate criteria
Does anyone know of a Python replacement for Matlab / Octave bwdist() function? This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.