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 8294515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:14:41+00:00 2026-06-08T14:14:41+00:00

I have a large web page (internal, in development) that is taking too long

  • 0

I have a large web page (internal, in development) that is taking too long to load. Specifically, loading the 2.3MB HTML page shows the styled content in ~3s, and then the browser locks up for over 20s before becoming interactive.

Using Chrome’s Timeline I can see that this is all due to script being kicked off as part of the load event:
Timeline view with 30s of "Scripting" due to Event(load)

However, when I profile the page load I see this (click for full size):
Profile

32.01 seconds are spent in some anonymous function with no associated source code. As part of that, 18.87 seconds are spent in the function “get length” (which also has no associated source code).

What is get length? Is there no better information available from the profiler about where time is being spent?

  • 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-08T14:14:42+00:00Added an answer on June 8, 2026 at 2:14 pm

    This is call to a length attribute of the form (or any other DOM element with the native length attribute.

    This is an example code I used

    <!DOCTYPE html>
    <html>
    <head>
        <title></title>
        <script type="text/javascript" src="js/lib/jquery.js"></script>
        <script type="text/javascript">
            var doStop = false;
    
            $(function(){
                //recursively append dot-button to the form and show its length    
                function a(counter) {
                    var $w = $('#wrapper').append($('<button>.</button>'));
                    $('#txt')[0].innerHTML = 'Form length: '+$w[0].length;
                    if (!doStop)
                        setTimeout(function(){ a(counter+1)}, 3);
                }
    
                $('#stopper').click(function(){ doStop = true; });
    
                a(0); //let's go now
            });
        </script>
    </head>
    <body>
    <button id="stopper">stop it</button>
    <div id="txt"> </div>
    <form id="wrapper"></form>
    </body>
    </html>
    

    I get the following in the Chrome profiler:

    | 0.08% | 0.08% | get length |
    

    I do have an arrow beneath it to drill down through function a() though.

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

Sidebar

Related Questions

I have a text item on a web page that appears too large in
I have web page with some really large tables that I'm filtering using some
I have a web page that uses a large image for its background. I
I have a web page with large div(for example white) and another div that
I have a web page that basically contains a large table, I use ajax
I have a large web page file (around 10mb) on a server drive that
I have a Webforms, AJAX-enabled web page which, when rendering large amounts of data,
I have a large set of data that is generated from a web service
I have a large url that I am encoding using System.Web.HttpUtility.UrlEncode. When I encode
I have a web application project that works with a quite large database (over

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.