2

I am working on web app which uses Chrome browser On the computer I have setup custom URI which executes .exe on the local computer.

On the webapp there is a javascript which loads the custom URI every couple of minutes. Something like:

$('<iframe/>', {
  src: 'foo://bar',
  class: 'hidden',
}).appendTo("body").remove();

So far so good ... everything is working on the first iframe load. I have tested it without the remove() , and it is the same. Only the first time it loads the custom URI, after that I have to at least click on the webapp and next time it will load fine. If I keep the browser minimized or not clicking on the application I don`t get the URI loaded.

I checked the network log of chrome and it appears there.

ATM I have solved this with auto clicker which make clicks on the webapp to keep the URI loaded. I am looking for better solution on this. I guess it is some restriction of Chrome.

Also the only option I have is to use Chrome.

Constantin.FF
  • 687
  • 1
  • 10
  • 23

2 Answers2

0

Have you thought about trying setInterval(loadFunc() {}, 1000*60*3)?

David Crosby
  • 175
  • 7
0

For me, this sounds like a performance "thing" from google with weird reasons. Have you tried changing the url to bust a maybe-possible cache?

Suggestion:

var counter = 0;
window.setInterval(function() {
  $('<iframe/>', {
    src: 'foo://bar?cachebuster='+counter,
    class: 'hidden',
  }).appendTo("body").remove();
  counter++;
}, 1000*60*3)

or however the scheme is to be expected.

bobbor
  • 141
  • 5
  • This is what exactly I do, and it works but only once. On the next time interval I can see in the console that it is loading the scheme but nothing really loads – Constantin.FF Mar 11 '15 at 21:22