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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:29:14+00:00 2026-05-23T10:29:14+00:00

To simplify my situation; I have 3 PHP pages. Two of them adds and

  • 0

To simplify my situation; I have 3 PHP pages. Two of them adds and removes rows from a database, respectively. The third fetches all of the rows, encodes them as JSON and prints the result.

I have timed the execution of all the pages, which ranges from 0.001 to 0.004 seconds. Here are the timings of the Ajax calls however:

Fetch entire table as JSON: 8-12ms
Add row: 990-1010ms
Remove row: 990-1010ms

The response time of the add and remove times are causing unnecessary sluggishness in my application, considering the PHP execution times are mere fractions of seconds, and their output is simply “1” for success and “0” for failure (Compared to the fetch call, which prints out up to 100 rows (~10 columns) of data as JSON)

All my Ajax return timings are measured in Firebug. All Ajax calls are made through jQuery ($.ajax()).

I’m guessing this has something to do with Firefox not considering a GET request answered unless it has received a particular amount of bytes or characters, and the 1 second response time being a timeout of some sort.

Any wisdom to share on the issue?


I’ve timed the AJAX loading times in Chrome and Opera as well (Averages):

Opera:
* All AJAX calls ~15 ms

Chrome:
* Remove row and fetch rows: ~25ms
* Add row: ~350ms

My application is snappy and responsive in Opera, but sluggish to a varying degree in all other browsers. Exactly why is still unclear to me.


I’ve timed IE 9 as well, which performs practically identically to Opera. My application now operates swiftly in two browsers.

  • 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-23T10:29:15+00:00Added an answer on May 23, 2026 at 10:29 am

    Apparently some browsers experience mysterious side effects from using localhost rather than 127.0.0.1 in the URL. The added full second of delay was one of them. Using 127.0.0.1 solved the issue for me.

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

Sidebar

Related Questions

I have a situation where say, a Notebook stores Pages . At first, I
I'm renewing question. For simplify situation I've this script in index.php file <form name=f
I'm having a rather silly problem. I'll simplify the situation: I have a table
In my program I have a situation that I can simplify to the following:
To simplify my question, let's say I have the following script: var sPath =
To simplify the scenario, let's say we have a list of People with FirstName
I would like to simplify my main build scripts, and I'd like to have
I have two types of custom handhelds which are similar, but slightly different, each
Here's the situation. We have a 3rd party middleware (using SQLServer as a back-end)
In my program I have 2 separate streams of logging events (calling them streams

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.