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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:56:04+00:00 2026-05-25T06:56:04+00:00

My javascript client makes a JSONP request via the JQuery $.ajax() method every second.

  • 0

My javascript client makes a JSONP request via the JQuery $.ajax() method every second.
When I view the JavaScript console in Google chrome (13.0.782.215 m Windows) and click on the Resources button I can see that every second an item is added to the Scripts.
This item is the result of my JSONP request, it looks like this:

jQuery162007347695156931877_1314625724397({"Online": "True"})

These items just keep building up; the longer the page stays alive, the longer the list becomes. My question is how do I clean up these resources?

I have seen a lot of similar questions here, but most relate to some sort of memory leak relating to using JQuery for DOM manipulation. As far as I know I am not doing these things. Other questions relate to some vague memory leak issue which does not seem easy to trace down. (e.g. here) I couldn’t find a satisfying answer to this question as of yet, so I decided to post it.

I am not on some quest trying to trace down a vague memory leak, I just want to know why these JSONP request results are stacking up in Google Chrome, and of course, how to clean it all up.

I have a code snippet that will reproduce the issue:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
$(document).ready(function()
{
  $.ajaxSetup({
      // url: [edit:] I have removed the link since the question is answered now
      crossdomain: true,
      dataType: "jsonp",
      tiemout: 3000,
      success: myResult
  });

  function myRequest()
  {
    $.ajax();
  }

  function myResult(data, textStatus, jqXHR)
  {
    // do nothing
  }

  setInterval(myRequest, 1000);
});
    </script>
  </head>
  <body>
  </body>
</html>
  • 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-25T06:56:05+00:00Added an answer on May 25, 2026 at 6:56 am

    You can’t. Chrome is just displaying the activity on your page, i.e. it’s displaying the history of what has happened on your page.

    jQuery’s implementation of JSONP probably creates a new script tag for each call. If you want to write your own implementation of JSONP, you could reuse the same script tag, which might cause Chrome to only list this ‘resource’ once. Either way, you’re not going to have a resource problem in Chrome.

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

Sidebar

Related Questions

I have a PHP application that makes extensive use of Javascript on the client
How is it possible to call a client side javascript method after a specific
Currently local storage for javascript is limited to cookies, which makes robust client side
I already read Securing AJAX Requests via GUID and Securing an ajax request .
My client asked me (a JavaScript client-side programmer) to change the order of the
Anyone who writes client-side JavaScript is familiar with the DOM - the tree structure
I would like to use client-side Javascript to perform a DNS lookup (hostname to
Can you have custom client-side javascript Validation for standard ASP.NET Web Form Validators? For
I am developing some client side Javascript that is using some JSON web services
i got a client side javascript function which is triggered on a button click

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.