473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

"A script on this page may be busy"

Using Firefox and this Reversi script
http://gamesforthebrain.com/game/reversi/ , I often get "A script on
this page may be busy ..." warning message. I suspect to be the
recursive min-max algorithm which takes too long in "Medium" mode -- it
never happens in "Easy" mode.

Is there anything I may try tweaking in the JS so users won't see this
somewhat annoying message?

Aug 22 '05 #1
1 2998


Philipp Lenssen wrote:
Using Firefox and this Reversi script
http://gamesforthebrain.com/game/reversi/ , I often get "A script on
this page may be busy ..." warning message. I suspect to be the
recursive min-max algorithm which takes too long in "Medium" mode -- it
never happens in "Easy" mode.

Is there anything I may try tweaking in the JS so users won't see this
somewhat annoying message?


Mozilla's JavaScript debugger Venkman allows you to profile scripts so
that can be an approach to find out where your script spends (too) much
time.
In general if a script in a loop or recursion causes the script engine
to give such a warning then with client-side script one approach is to
try to break up the loop or recursion with different script blocks
calling each other with setTimeout or setInterval.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 22 '05 #2

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

Similar topics

11
by: tdi | last post by:
Ok, stupid question for the day. I'm reading the interview with Steve Moret and he says: "Once a lot of scripts started going in we knew there was no way we could back out of using Python." I'm...
6
by: Ken Varn | last post by:
Sometimes when I try to close my managed C++ application, the following dialog displays in Win 2000 Pro: The title of the dialog is "Server Busy". The message is "This action cannot be completed...
0
by: VB Programmer | last post by:
I keep getting the "Microsoft Visual Studio is busy" message. Is there any way to tell WHY this is hanging up? I almost always have to just kill the task.
4
by: Gary Brown | last post by:
Hi and Happy Holidays, VS 2005 yields "Microsoft Visual Studio Is Busy Microsoft Visual Studio is waiting for an internal operation to comple. If you ... report this problem to Microsoft." ...
7
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem...
4
by: rukkie | last post by:
Hi, I have some problems with a PHP reference in a <SCRIPTtag, but only with the Internet Explorer, which gives a "Error on page" message in the Status Bar. The code is as follows : <script>...
4
by: pbd22 | last post by:
Hi. I am wondering what do I replace the "this" statement with to get the appropriate container/response. When I try: cal.prototype.dates(cal.days.day); I get
3
by: frosted74 | last post by:
Hi, I have 2 javascript functions, one that sorts a table and one that shows/hides a modal dialog that displays something like "Sorting" with a little icon indicating that the browser is "busy"...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.