PDA

View Full Version : Why Does My Page Take Forever to Load?



jihanemo
11-08-2008, 02:53 PM
http://americanchic.net/blankgrid.html - I noticed that when loading the page for the first time in my FF and IE browsers, the page takes almost a minute to completely load (the little loading circle icons keep moving round and round and the top of the browser - I figured that this meant that the page is still loading). What might be causing this?

jscheuer1
11-08-2008, 03:30 PM
Well there is no myul. But your page loads quite fast here in those browsers and in Opera. I do have 100mps connection though.

jihanemo
11-10-2008, 12:32 AM
Well there is no myul. But your page loads quite fast here in those browsers and in Opera. I do have 100mps connection though.

What is "myul"?

jscheuer1
11-10-2008, 05:08 AM
From the page's source code (highlighting added):



window.onload=function()
{
ray.randomPic('myul','default'); // ID of the ul element and the id of the target image
}

Which triggers:



randomPic:function(el,targ)
{
var img=document.getElementById(el) . . .

So, either get rid of the onload code, or make sure all of the markup that the function it triggers is expecting exists.