Click to See Complete Forum and Search --> : Problem: 15seconds to load each .css and some .js


antars
02-29-2008, 03:56 AM
Hi to all!!
I have a problem with one client, when he try to acces to one web(we develop this), each css takes 15seconds to load and the same for some javascripts.
The problem is, it only happens in him computer and only with this web page. It works in the other computers into the same office.

Him system:
-Dell laptop with Windows Vista and Internet Explorer 7(IE7) and McAfee Internet Security
- ADSL data line, using router with DHCP on.

My tests:
- Stop McAfee and Vista firewall
- Stop Parental Control
- Turn IE7 to all defaul settings
- Add the site to friendly list sites(in IE7)
- Disable IE7 McAfee integration
- Add the server ip to the /etc/hosts file
- Test the download and upload speed --> ok
- Test other webs hosted in the same server --> (all work ok)
- Some system restarts
- The dns solves the web address correctly
- Install Firefox 2, and the problem with this web is the same.
- Start up the same web in other server --> it's more slow yet

The css size is about 4kb and takes 15 seconds to load.
The application runs under Apache2, tomcat 5.5 and liferay 3.4
And the html code to include the css: <LINK REL=STYLESHEET HREF="texto.css">
If you put in the browser: http://meb.site/texto.css (direct access to the css) it takes 15ms in load(good speed), but if you put in the html code:
<LINK REL=STYLESHEET HREF="http://meb.site/texto.css"> it's slow again

It's strange because only happen in this cumputer, but it's my client computer :( .

Any suggestion is good for me.

Thank you very much!!!

KDLA
02-29-2008, 10:23 AM
I suggest you run a virus and spyware scan on the computer. Could be that some program is trying to run when the browser is opened and pointing to your IP.

Major Payne
03-01-2008, 01:01 AM
Plus, use relative paths on all pages and eliminate all the extra http:// calls.

Ron

ray326
03-01-2008, 06:33 PM
It doesn't really work that way, Ron.

skywalker2208
03-01-2008, 09:03 PM
I would try testing on other computers to see if his computer is the only one having the problem

Major Payne
03-01-2008, 09:04 PM
Sure it it does. No sense in having browser make a call each time because of a full http:// path when the file is already right there.

Ron

ray326
03-01-2008, 11:15 PM
The browser still has to make full HTTP requests for every non-cached reference on the page. The only difference is whether the browser self-generates the beginning of the URL or whether you feed it to it. Watch a full page load with "Live HTTP Headers" running.

antars
03-03-2008, 02:56 AM
Hi!
Thank you for your answers.
Two comments:
- In the code, all css calls is relative, only put the http call directly to try if is the problem.
- Only happens with this computer.

They have one similar problem with other computer in the same office with Windows XP, in this other case, the problem was Norton Security. But now the computer uses Vista and McAfee, I disable it and doesn't seem the problem.

some suggestion?

KDLA
03-03-2008, 08:41 AM
I'd see if it is an ActiveX control problem.

antars
03-03-2008, 11:05 AM
Thanks, but the web do not use ActiveX controls.

KDLA
03-03-2008, 11:08 AM
Sometimes the IE browser, though, detects javascript and classifies it as an ActiveX control.

antars
03-03-2008, 11:19 AM
Sometimes the IE browser, though, detects javascript and classifies it as an ActiveX control.

Can happen the same with css files?
ActiveX controls, depends from Operating System or from Browser?(the problem is the same with IE7 or Firefox)

Thank you a lot!!

toicontien
03-03-2008, 11:59 AM
-Dell laptop with Windows Vista and Internet Explorer 7(IE7) and McAfee Internet Security
- ADSL data line, using router with DHCP on.
There are your problems right there. :) Have him Ctrl + Shift + Esc and click the "Performance" tab (assuming Vista works similarly to XP). How much RAM is installed and how much is being used? The two biggest memory hogs on his laptop are Vista and McAfee.

And I'm only being partially sarcastic. Really. Look at the RAM usage on his computer. McAfee is a notorious memory and processor hog as it scans pretty much every file your computer is working with, before and after you use it.