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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:11:00+00:00 2026-05-12T08:11:00+00:00

I serve a web page which makes the client do quite a lot of

  • 0

I serve a web page which makes the client do quite a lot of Javascript work as soon as it hits. The amount of work is proportional to the amount of content, which varies a lot.

In cases where there is a huge amount of content, the work can take so long that clients will issue their users with one of those “unresponsive script – do you want to cancel it?” messages. In cases with hardly any content, the work is over in the blink of an eye.

I have included a feature where, in cases where the content is larger than some value X, I include a “this may take a while” message to the user which is displayed before the hard work starts.

The trouble is choosing a good value for X since, for this particular page, Chrome is so very much faster than Firefox which is faster than IE. I’d like to warn all users when appropriate, but avoid putting the message up when it’s only going to be there for 100ms since this is distracting. In other words, I’d like the value for X to also depend on the browser’s Javascript capabilities.

So does anyone have a good way of figuring out a browser’s capabilities? I’m currently considering just explicitly going off what the browser is, but that seems hacky, and there are other factors involved I guess.

  • 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-12T08:11:01+00:00Added an answer on May 12, 2026 at 8:11 am

    If the data is relatively homogeneous, one method might be to have a helper function that checks how long a particular subset of the data has taken to go through, and make a conservative estimate of how long the entire set will take.

    From there, decide whether to display the message or not.

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

Sidebar

Related Questions

I am currently putting together a rails-based web application which will only serve and
I've written a sidebar addon: which fetches the current page's URL makes a call
Can a Silverlight 2 enabled web page be managed from an Apache server? (I'm
I have a Windows 2008 Server with IIS7 on it and a web page
I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu)
I'm using Pylons (a python framework) to serve a simple web application, but it
My web server has a lot of dependencies for sending back data, when it
I'm working on my first homework project in a web programming class, which is
I am trying to make a request to a web page using WebRequest class
I have used ajaxtool kit's autocomplete on a page which gets data from a

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.