How To Rightly Detect Iframe Was Loaded With Response 204 No Content?
For more clarity I made it simple (so let's presume that iframe.attr() will be called after previous load was fully completed): var iframe = $('iframe'); var counter = 0; var track
Solution 1:
Change your previous code to this:
var trackLoads = function(response, status, xhr){
   console.log("I was loaded:" + counter);
   counter += 1;
   if ( status == "error" && xhr.status == 204) {
      console.log( "Sorry but there was an error: " + xhr.status + " " + xhr.statusText );
   }
};
Post a Comment for "How To Rightly Detect Iframe Was Loaded With Response 204 No Content?"