Too many scripts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • simplicity

    Too many scripts

    This is erratic and not always reproducible.

    I have a large amount of data (SOAP) that I must parse and every one
    in a while, especially on slower machines the warning pops up about
    too many scripts running. I did a lot of optimizing but it's providing
    only partial solution.

    Is there a way to turn this warning off and force the browser to run
    the script no matter how long it takes (both Firefox and IE)?
  • Joost Diepenmaat

    #2
    Re: Too many scripts

    simplicity <stella_pigeon@ yahoo.cawrites:
    This is erratic and not always reproducible.
    >
    I have a large amount of data (SOAP) that I must parse and every one
    in a while, especially on slower machines the warning pops up about
    too many scripts running. I did a lot of optimizing but it's providing
    only partial solution.
    >
    Is there a way to turn this warning off and force the browser to run
    the script no matter how long it takes (both Firefox and IE)?
    There's a "too many scripts" warning? What browser gives that useless
    warning?

    If your browser's blocking too long, you can split up the processing and
    schedule using the setTimeout function.

    for instance, instead of:

    for (var i =0; i < 100000; i++) {
    doSomethingSlow ();
    }

    do something like:

    var i = 0;
    function schedule() {
    for (var j = 0; j < 100; j++) {
    doSomethingSlow ();
    }
    if (++i < 10) {
    setTimeout(sche dule,5);
    }
    else {
    alert('done');
    }
    }
    schedule();
    function doSomethingSlow () {};



    --
    Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

    Comment

    • simplicity

      #3
      Re: Too many scripts

      On Mar 17, 6:15 pm, Joost Diepenmaat <jo...@zeekat.n lwrote:
      simplicity <stella_pig...@ yahoo.cawrites:
      This is erratic and not always reproducible.
      >
      I have a large amount of data (SOAP) that I must parse and every one
      in a while, especially on slower machines the warning pops up about
      too many scripts running. I did a lot of optimizing but it's providing
      only partial solution.
      >
      Is there a way to turn this warning off and force the browser to run
      the script no matter how long it takes (both Firefox and IE)?
      >
      There's a "too many scripts" warning? What browser gives that useless
      warning?
      >
      If your browser's blocking too long, you can split up the processing and
      schedule using the setTimeout function.
      >
      for instance, instead of:
      >
      for (var i =0; i < 100000; i++) {
      doSomethingSlow ();
      >
      }
      >
      do something like:
      >
      var i = 0;
      function schedule() {
      for (var j = 0; j < 100; j++) {
      doSomethingSlow ();
      }
      if (++i < 10) {
      setTimeout(sche dule,5);
      }
      else {
      alert('done');
      }}
      >
      schedule();
      function doSomethingSlow () {};
      >
      --
      Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/
      I have seen it in IE but I was told it was also seen in Firefox.

      Comment

      Working...