Skip to content Skip to sidebar Skip to footer

Javascript Only Works After Opening Developer Tools In Chrome

I have the same problem as in here: Why does JavaScript only work after opening developer tools in IE once? except that mine is with chrome 44. JavaScript code - mainly XHR and set

Solution 1:

You need to make cache: false for jQuery AJAX, so that the response data won't be cached at browser. Another trick is too (if somebody is not using jQuery) make the URL unique by sending some unique value as parameter (like new Date().getTime()).

Example:

$.ajax({
    url: 'http://someurl', 
    cache: false, 

Post a Comment for "Javascript Only Works After Opening Developer Tools In Chrome"