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

  • Home
  • SEARCH
  • 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 9230861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:55:21+00:00 2026-06-18T05:55:21+00:00

Possible Duplicate: Javascript Memory Limit I’m working on creating html page using client side

  • 0

Possible Duplicate:
Javascript Memory Limit

I’m working on creating html page using client side javascript which will load around 150mb of XML data file on page load. When the file size was around 5 mb, it took 30 seconds to load whole data into an array. But when I changed file to 140 mb, the page is not responding in firefox and crashing abruptly in chrome. My snippet to load data will process on every individual tag in xml. My question is, is there any limited heap size for javascript? Any academic article resource is preferable to emphasize my research.

$(document).ready(function () {
        // Open the xml file
        $.get("xyz.xml", {}, function (xml) {
            // Run the function for each  in the XML file
             $('abc', xml).each(function (i) {
                a = $(this).find("a").text();
                b = $(this).find("b").text();
                c = $(this).find("c").text();
                ab = $(this).find("ab").text();
                bc = $(this).find("bc").text();
                cd = $(this).find("cd").text();
                de = $(this).find("de").text();
                // process data
              dosomething(a,b,c,ab,bc,cd,de);
                   }); }); });
  • 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-06-18T05:55:23+00:00Added an answer on June 18, 2026 at 5:55 am

    I don’t know of any limits. I’ve been able to load even a 1Gb file. Yes, it was slow to load initially and everything ran slowly because most of the memory will be paged.

    However, there are problems with trying to load a single JavaScript object that is that big, mostly because the parsers can’t parse an object that is too big. See Have I reached the limits of the size of objects JavaScript in my browser can handle?

    For that case, the solution was to break up the creation of the JavaScript object into multiple stages rather than using a single literal statement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: JavaScript/jQuery HTML Encoding I am passing info down to the client as
Possible Duplicate: JavaScript: client-side vs. server-side validation There are a lot of JavaScript/jQuery client-side
Possible Duplicate: Javascript force open a link in a browser I am working on
Possible Duplicate: JavaScript === vs == : Does it matter which “equal” operator I
Possible Duplicate: Javascript on the bottom of the page? I saw a comment in
Possible Duplicate: JavaScript equivalent to printf/string.format I'm using dictionary to hold all text used
Possible Duplicate: How can I get the memory address of a JavaScript variable? Is
Possible Duplicate: Javascript === vs == : Does it matter which “equal” operator I
Possible Duplicate: Javascript memory profiler I like to know what variables take how much
Possible Duplicate: JavaScript Variable Scope I have a JavaScript function for HTML select options

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.