Too many scripts

Discussion in 'Javascript' started by simplicity, Mar 17, 2008.

  1. simplicity

    simplicity Guest

    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)?
    simplicity, Mar 17, 2008
    1. Advertisements

  2. There's a "too many scripts" warning? What browser gives that useless

    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++) {

    do something like:

    var i = 0;
    function schedule() {
    for (var j = 0; j < 100; j++) {
    if (++i < 10) {
    else {
    function doSomethingSlow() {};
    Joost Diepenmaat, Mar 17, 2008
    1. Advertisements

  3. simplicity

    simplicity Guest

    I have seen it in IE but I was told it was also seen in Firefox.
    simplicity, Mar 17, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.