473,654 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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)?
Mar 17 '08 #1
2 1644
simplicity <st***********@ 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/
Mar 17 '08 #2
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.
Mar 17 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3154
by: Michele Simionato | last post by:
Is there a simple way to get the path to the Python Tools/scripts directory? Currently I have defined by hand an environment variable such as PYTHONSCRIPTS=/home/myhome/packages/Python-2.3.3/Tools/scripts so I can alias the more useful scripts in my .bashrc (for instance alias dutree=$PYTHONSCRIPTS/dutree.py), but this approach is PITA, I have to change the variable each time I change machine and at each new Python version. Is there...
9
3649
by: Jeff Wagner | last post by:
I have a project of converting numerous DOS cmd shell scripts to Python. Is there a tutorial to getting started? Thanks, Jeff
2
12737
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of scripts for that). Some of the Sql scripts can be quite long, and so we break them out to their own script files and call them all from one main ..sql file, using sqlplus to execute it all. The admin would run the file like:
6
14548
by: Alex Vilner | last post by:
Hello! We have a set of individual .SQL scripts which we would like to execute against a MS SQL Server 2000. Is there any way to have ISQL utility (or any other means) to execute all of them without having to establish a separate database connection for each script: isql -Ux -Py -Ss -i script1.sql isql -Ux -Py -Ss -i script2.sql isql -Ux -Py -Ss -i script3.sql
7
4287
by: ergobob | last post by:
Hello, I have two small PHP scripts running on a test page at: http://www.usernomics.com/ergonomic-products-accessories5.html Both scripts work perfectly when there is one script on a page. However, if I place two on the page (one above the other), the second script will not render. I get no PHP error messages - the script will just not render. I think the PHP Scripts are OK as they were automatically generated by RSS
8
3740
by: Mike Nau | last post by:
We currently have all of our schema and testdata laid out in a large set of sql scripts. It currently takes about 15 minutes to run the scripts on a Dual 1.7ghz box with 1gb of ram. Does anyone know of a way to speed this up? Since our database is currently changing all the time, we are constantly having to re-create our database from these scripts.
2
4861
by: Dave Hughes | last post by:
Just noticed something rather annoying after upgrading my test box (a Linux server running DB2 UDB v8 for LUW) to fixpak 11 (for reference it was previously on fixpak 7). In the past I've relied heavily on the ability to start multiple long-running SQL scripts in the background and have them all run in parallel. Unfortunately, it seems that somewhere between fixpak 7 and fixpak 11 something has been fixed / broken which prevents more...
1
1543
by: ponsibabu | last post by:
We have several scripts for sale. We are selling them at reasonable prices and willing to work around your budget. For more information please contact totascriptz@yahoo.com with "Scripts" as the subject line. We have all types of scripts. We are very flexible with pricing and try to work around your budget. Some of our scripts are mentioned below. For more information please contact totascriptz@yahoo.com with "Scripts" as the...
8
2375
by: Alan Isaac | last post by:
Suppose I have a directory `scripts`. I'd like the scripts to have access to a package that is not "installed", i.e., it is not on sys.path. On this list, various people have described a variety of tricks they use, but nobody has proposed a pretty way to allow this. I am therefore assuming there is not one. (?) How about allowing a `scripts.pth` file in such a `scripts` directory, to work like a path configuration file?
3
1415
by: shapper | last post by:
Hello, I am working on a web site where I have a master page. Most web site pages use this master page as base. Some scripts are used in all pages ... other just in a few pages. Should I load all scripts in master page ... I think they are cached right? Or should I load the common scripts to all pages in my master page and
0
8372
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8285
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8591
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.