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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:41:52+00:00 2026-05-25T21:41:52+00:00

I made an ajax application, which worked great on my local dev server, but

  • 0

I made an ajax application, which worked great on my local dev server, but when I moved it online, one particular request got really slow. This request is quite complicated – it loads a lot of stuff from database and creates quite big text output, around 120kB. Since the app was written in a short time, there was a lot of space for optimization. Naturally I was trying to find what’s slowing my app most – and I was surprised – it was the last final echo which was printing all calculated information.

I used Firebug to measure the times. The request took ~100ms without printing the info, just calculating, but ~400ms with printing… so the simple echo command took around 300ms! Then I tried PHP’s microtime() to get more precise results… but suddenly there was no significant difference between printing and not printing. So I guess the problem is somewhere else – in the area of sending text to Apache and then to the client… I don’t understand this stuff, but I read somewhere that this might be caused by small Apache buffer. Can I do something about it? I don’t think that 120kB is too much – just few years ago, in the time of table layouts, most of the big websites had html source of this size.

Could this be a problem of the webhosting? I could try to contact them but naturally it would be easier if I could solve this myself.

  • 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-25T21:41:53+00:00Added an answer on May 25, 2026 at 9:41 pm

    The answer is really simple. My download speed is around 300kB/s so downloading a 120kB page can’t be faster than ~300ms. That’s all and I’m really stupid 😀

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

Sidebar

Related Questions

We have a production Server which has ASP.net 2.0 Application running with Ajax 1.0
I've made an application that makes full use of ajax, and what I need
I've made a desktop application which uses Cocoa's NSTokenField: alt text http://developer.apple.com/documentation/Cocoa/Conceptual/TokenField_Guide/Art/tokenfield.jpg More info
I'm trying to make some ajax-functionality in my web application, but I cannot get
I have a .NET MVC application which makes extensive use of AJAX and modal
I'm building ASP.Net MVC application kinda Game which deal a lot with online users
I have made an AJAX function with jQuery. The function works properly, and server
The url im trying to match is: http://domain/games/getdata/genres/ This request is made via ajax
I am creating a complete ajax application where there is one base page and
I have an application a the moment which for a particular set of reasons

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.