473,406 Members | 2,336 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,406 software developers and data experts.

Calling javascript freezes browser window

When I open a webpage with javascript my browser (both IE6 and
FF2.0.0.3) freezes anywhere from seconds to more than a minute. During
that period, the browser is frozen and windows (XP-SP2) is very poorly
responsive. There is no significant CPU-load.

When I disable javascript in FireFox, everything works smoothly
again.

I have uninstalled MS javascript and SUN javascript, however,
javascript is still being executed (when enabled in FF).

- Is there another javascript engine (besides MS-VM and SUN) that
might be screwing up my system?

- Any suggestions how to troubleshoot / fix this problem?

Thanks,

Wouter Pelgrum

May 21 '07 #1
8 8897
On May 21, 1:33 pm, wpelg...@gmail.com wrote:
When I open a webpage with javascript my browser (both IE6 and
FF2.0.0.3) freezes anywhere from seconds to more than a minute. During
that period, the browser is frozen and windows (XP-SP2) is very poorly
responsive. There is no significant CPU-load.

When I disable javascript in FireFox, everything works smoothly
again.

I have uninstalled MS javascript and SUN javascript, however,
javascript is still being executed (when enabled in FF).

- Is there another javascript engine (besides MS-VM and SUN) that
might be screwing up my system?

- Any suggestions how to troubleshoot / fix this problem?

Thanks,

Wouter Pelgrum
JAVA != JavaScript

May 21 '07 #2
VK
On May 21, 3:33 pm, wpelg...@gmail.com wrote:
When I open a webpage with javascript my browser (both IE6 and
FF2.0.0.3) freezes anywhere from seconds to more than a minute. During
that period, the browser is frozen and windows (XP-SP2) is very poorly
responsive. There is no significant CPU-load.
As you still don't get system warning "Script running on this page
takes too much of ..." etc. : my best guess would be that the
offending page is using synchronous XHR call to a very slow /
overloaded server. Nothing to do with Javascript execution per se
then. For a better help instead of "a page" show us _the_ page
demonstrating your problem.

May 21 '07 #3
For a better help instead of "a page" show us _the_ page
demonstrating your problem.
http://www.rabobank.nl/particulieren/ takes more than a minute to load
with javascript enabled (during which the whole system is practically
unresponsive). With javascript disabled it is loaded in about a
second.
But basically any page with javascript seems to cause some delay,
sometimes only a fraction of a second per javascript item, sometimes
significantly more.

IE and Firefox show the same symptoms, another XP-SP2 PC on the same
network handles the same pages without any problems.

May 21 '07 #4
wp******@gmail.com wrote:

>I have uninstalled MS javascript and SUN javascript, however,
javascript is still being executed (when enabled in FF).

- Is there another javascript engine (besides MS-VM and SUN) that
might be screwing up my system?
You seem to be confusing Java and Javascript. They are completely
different. VMs pertain to Java, not Javascript. (And the MS Java VM is
hopelessly outdated.)

Javascript interpreters are built-in to the browsers. You *cannor*
uninstall the Javascript interpreter that Firefox uses. You can tell
Firefox not to execute Javascript. So the most likely problem here is
badly written Javascript (assuming you really mean JS and not Java) in
the page you're viewing.

--
Tim Slattery
Sl********@bls.gov
http://members.cox.net/slatteryt
May 21 '07 #5
Javascript interpreters are built-in to the browsers. You *cannor*
uninstall the Javascript interpreter that Firefox uses. You can tell
Firefox not to execute Javascript. So the most likely problem here is
badly written Javascript (assuming you really mean JS and not Java) in
the page you're viewing.
Okay, thanks for the explanation. But then it is even stranger that
both IE and FF experience the same problem with pages (e.g.
http://www.rabobank.nl/particulieren/ but also http://www.nytimes.com)
that have worked fine before and are still working fine on my other
PC. The problem seems to be related to javascript as disabling
javascript in FF solves the delay (but is unworkable for most
websites).

May 21 '07 #6
VK
On May 21, 5:31 pm, wpelg...@gmail.com wrote:
For a better help instead of "a page" show us _the_ page
demonstrating your problem.

http://www.rabobank.nl/particulieren/takes more than a minute to load
with javascript enabled (during which the whole system is practically
unresponsive).
On both IE and Firefox it takes ~ 4.1 seconds to load (average of 10
test loads in each browser, end of loading counted by "Done" message
appeared in the status bar, an external capturer is used). My Dell
notebook I took with me in Europe and tested with is very average by
its properties:
AMD Turion 64 X2 Mobile 1.8MHz
1Gb RAM
Wireless 128Kb upstream / 256Kb downstream Internet connection

For the page of such low complexity I would still expect 1-2 sec max
but they are using a purely DIV+CSS layout, that always adds 2-3 times
rendering time increase against of normal table layouts. Also their
http://www.rabobank.nl/particulieren...rusive_home.js
used on the page is a nightmare of document.write's - with say flash
movies written right to the document head section, so parser has to
spend extra time to wait for all segments arrive and to bring the DOM
tree into some acceptable state. Still 4-5 secs with progressive
rendering (so you can see some part of the page right away) is totally
OK - unless one is trying to call 911 online :-) There is no question
of _1 minute_ delay here.
That means either of:
1) You are using some legacy PC
2) For some reason your connection to these segments of the Web gets
delayed.
3) You have some spyware/antivirus installed that takes forever to pre-
parse the input before let it in to the browser.

I would check first with 3) As the problem is not reproducible I'm out
of other ideas. If nothing helps, install NoScript addon for Firefox
and set script disabled for all problematic pages:
https://addons.mozilla.org/en-US/firefox/addon/722

May 21 '07 #7
That means either of:
1) You are using some legacy PC
I'm using a 2.4 GHz P4 with 1.5GB RAM. Previously, these pages loaded
just fine...
2) For some reason your connection to these segments of the Web gets
delayed.
Another PC on the same network has no problems
3) You have some spyware/antivirus installed that takes forever to pre-
parse the input before let it in to the browser.
No antivirus installed, I just used an online scanner to check, no
viruses either.
Not sure about the spyware. I can imagine that spyware can seriously
affect some processes, so I'll scan my system and see if there is
something wrong there.
I would check first with 3) As the problem is not reproducible I'm out
of other ideas. If nothing helps, install NoScript addon for Firefox
and set script disabled for all problematic pages:https://addons.mozilla.org/en-US/firefox/addon/722
Okay, will do. Thanks!

May 21 '07 #8
3) You have some spyware/antivirus installed that takes forever to pre-
parse the input before let it in to the browser.

Just scanned for spyware, nothing found. So no virusses, no spyware,
what else can cause the execution of javascript to slow down so
significantly?

May 22 '07 #9

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

Similar topics

6
by: Edward King | last post by:
Hi! I am trying to achieve the following: I have a number of help pages (in the format help_nn.php where nn=helpid). I want to be able to open a particular help page by calling the function...
3
by: Clinton Goff | last post by:
I am attempting to write a javascript app that will open a second browser window, load a url, such as www.google.com (foreign url) and perform a <File-Save As> function on that window. I am able...
3
by: John Bokma | last post by:
I have two windows in a frame. I want to be able that each can open a pop up window and that the handle to that window can be stored somewhere, so that each can talk to the pop up. is it...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
1
by: Jon Angel | last post by:
I'm relatively new to C# and need to maintain an application that opens a new browser window with a URL like this: ...
6
by: G Dean Blake | last post by:
in my aspx app I am writing a stream that works fine but it replaces what is in the client browser window. The code is as follows: .. .. HttpContext.Current.Response.ClearHeaders()...
17
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of a browser window?...
31
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I modify the current browser window?...
6
by: bushi | last post by:
hi everyone! i have diplayed my hyperlinks in a iframe.when i redirect to next page.the next page also open in the same frame,but i want to open a new browser window,when i click on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.