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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:07:14+00:00 2026-06-05T03:07:14+00:00

Long story short: I had to create a chat functionality which seems to work

  • 0

Long story short: I had to create a chat functionality which seems to work on all devices except the iPad (and possibly the iPhone). Our customer uses their iPads to chat and so I have tried to solve the problems for past 7-ish months.

That’s how long it took for me to somewhat pinpoint the problem.

The problem is clearly in the iPad’s browser. I run JSON Ajax requests using the library jQuery. The requests are fine, they do not contain errors. At some point, the iPad just doesn’t run Ajax requests at all. I dont know why, I cant find why. Every Ajax request is logged, but at some point the server doesn’t get any requests. I have asked a zillion times and the customer is positive they are only touching the ipad to prevent it from being locked.

I have reduced the rate of requests to approximately 15 requests per minute, but that didn’t work.

So, my question is: Is there any information known to man why the ipad abruptly stops sending Ajax requests after 10-15 minutes?

  • 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-05T03:07:16+00:00Added an answer on June 5, 2026 at 3:07 am

    Putting this here, as in comment there isn’t any syntax highlighting.

    I’ve made a super minimal test page here: http://www.focalstrategy.com/tests/ajax.php

    The code is:

    <?
    
    if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
    
    echo date("F j, Y, G:i:s a");
    exit();
    
    }
    
    ?>
    <!doctype html>
    <html>
    <head>
        <title>AJAX test</title>
    </head>
    <body>
        <h1>Ajax Test</h1>
        <p>This page makes an AJAX request every 5 seconds and replaces the div below with the returned date.</p>
    
        <div><p id="date"><?= date("F j, Y, G:i:s a") ?></p></div>
        <div><p><span id="count">0</span> updates made.</p></div>
    
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script>
        var count = 0;
    
        var getDate = function() {
            $.get('/tests/ajax.php', function(data) {
                $('#date').html(data);
                count = count + 1;
                $('#count').html(count);
            });
        }
        setInterval(getDate, 5000);
        </script>
    
    </body>
    </html>
    

    So, I ran this for an hour, and didn’t have any issues, the iPad (fully updated) ran fine throughout, without missing any.

    I also ran this on Chrome and recorded it’s behaviour. This looks like this:

    Chrome Profiler view, showing graphs for DOM Node, Event Listeners and memory usage.

    (Full size)

    There’s some weirdness here, in that at first the number of event listeners stays constant, then after a while goes mad,, increasing up to 56 listeners before dropping to 1 again. The DOM Node Count also repeatedly spikes, as high as 424. Both have fairly odd behaviour bearing in mind the simplicity of this code.

    Perhaps on your app the number of Dom Nodes being tracked, or the number of event listeners is reaching some value causing the iPad to lose track of what’s happening, or something similar.

    It’s also worth noticing that the memory usage ramps up until garbage collection happens. That’s what is meant to happen, though perhaps it’s less efficient on the iPad.

    Edit: I’ve tested it again on a clean profile, many of the Event listeners are due to extensions – the same behaviour happens, but not to same degree, also background values are 0-1 rather than 15-20

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

Sidebar

Related Questions

So long story short, im trying to build a chat application....well its already built
I'm trying to make a WCF service that will work with JSON-P (long-story short,
I had a strange problem in one of our production databases. Long story short,
Long story short, I want to call format with arbitrarily named arguments, which will
Ok. Long story short. My camera has a method which takes a photo and
Long story short, a co-worker's computer crashed and lost his work since his last
Long story short, my question is: How can I force GnuPG which private/public key
Long story short, we found files promoting prescription drugs on our server that we
Long story short, I have an ASP.NET application I'm trying to debug and at
Long story short, I'm developing a theme template for a blog that enables you

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.