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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:44:54+00:00 2026-06-09T20:44:54+00:00

I work on a web application in which the dev environment loads about 500

  • 0

I work on a web application in which the dev environment loads about 500 js files from a local web server (I’ve tried both IIS and apache). These files are optimized in prod, but for development that’s what we have. I know there are other strategic options that might prevent the need to load so many js files, but that’s currently out of my hands. What I’d like to do is speed up these requests. Am I crazy to think that each of these requests could only take 10ms, so that the whole request could take 5s (10ms * 500 requests)? Currently both chrome and firefox are reporting that these requests take about 100ms (even for 304s).

I took this down to the smallest common denominator and created a 1 line js file. I issue a request to this file through firefox and chrome and each report that it takes >100ms. What’s odd, though, is that when I make the same request from curl, it only takes 5ms-ish:

$ curl 'http://10.222.139.56:81/js/ben.js' -o /dev/null -w '%{time_total}'
0.005

What gives? I would think the curl number is correct? Why are chrome and firefox taking longer?

  • 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-09T20:44:55+00:00Added an answer on June 9, 2026 at 8:44 pm

    My guess would be that for each js file loaded by Firefox and Chrome, the reported time includes the browsers parsing, caching, etc, of the file. Even a one-liner file is going to take a small amount of work to process.
    On the other hand, curl just pulls down the content and saves to disk or stdout. That operation is much faster.

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

Sidebar

Related Questions

I am developing a web application which needs to work with both IE7 and
I'm developing a web application for a company which I work for. My team
I work on a Symfony web application which has a standard login form. To
I have a web application which fetches information from a web service. It works
I am developing an web application which can upload/download a file from client to
I am writing a php web application which needs to open pdf files in
We have an ASP.NET web application which uses ASP.NET Ajax. We open it from
I'm planning to work on a web application of reasonable complexity and am wondering
background: I work on an asp.net web application that is on a company intranet.
I have a Java web application at my work and I'd like simplify how

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.