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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:42:47+00:00 2026-06-05T12:42:47+00:00

I have a javascript file which is called in the head tags of my

  • 0

I have a javascript file which is called in the head tags of my document, and every say 30 seconds, I would want this javascript file to reload.

I have done some research into this, and it seems like there’s issues with it pulling a locally stored copy of the file, or cross browser issues…

Pulling it from the cache is not a problem, since the actual file is not changing it just needs to be reloaded.

Would this be an ajax task?
How would I go about doing this?

Thanks in advance.

  • 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-05T12:42:49+00:00Added an answer on June 5, 2026 at 12:42 pm
    function foo(){
        $.getScript( url, function(script, textStatus, jqXHR){
            script...
        });
    }
    
    setInterval(foo, 30000);
    

    Caching Responses

    Be default, $.getScript() sets the cache setting to false. This appends a timestamped query parameter to the request URL to ensure that the browser downloads the script each time it is requested.

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

Sidebar

Related Questions

I have a file called bbUI.js which contains this bit of JavaScript. Outside of
I have a sample.xhtml file which has few lines of javascript. This javascript will
Folks, I have a HTML file which contains a button called Email this content
I have a javascript file called pendingAjaxCallsCounter.js with a variable var pendingAjaxCalls which is
I have a javascript file which has a function calling a server (url) to
I have a JavaScript file which has a variable as such: var ads =
I have a JavaScript file which is loaded up at the end of my
I have JavaScript code which copies the value of input file and paste it
I have a javascript file main.js and five html files 1.html,2.html,3.html,4.html,5.html I want to
I have this code: <body onLoad=subcatSelection();> The function is inside a .js file which

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.