Click to See Complete Forum and Search --> : Links inactive until complete page load


autotech
05-19-2009, 11:16 AM
I've been working on decreasing page load time and ran into something I can't figure out. The issue is not always the time involved for the page to load completely, but the fact that links and the page scroll bar are inactive until the very last element has loaded. In my case it's usually an Adsense Ad. But I've seen other large pages on other sites with lots of javascript which take just as long to load completely, but, during the process you can still scroll the page or use links. The page is still functional during the process.

What's the trick?

Charles
05-19-2009, 11:21 AM
They are specifying the size of the images with "height" and "width" attributes. That way the page can be laid out before the images are loaded.

autotech
05-19-2009, 11:33 AM
Hi Charles,

I use height and weight attributes on all images and javascript ads. I still have to wait for that last Element (javascript ad or image) to appear, before I can scroll the page or click on a link. My main content (with links) is the first thing to appear during page load. But I still have to wait for the very last Ad to appear before links or the scroll bar are usable.

It's kind of annoying to a (quick mouse) user when a link appears and it's inactive until the whole page is finished loading.

Any other ideas?

Thanks.

Charles
05-19-2009, 11:38 AM
Dump all the JavaScript. But I would double check to make sure that all the sizes are specified.

autotech
05-19-2009, 11:43 AM
Dumping the javascript will solve one problem, but then I'll make no money. Absolutely sure that all images are sized correctly. There's something else to it.

Fang
05-19-2009, 12:03 PM
http://developer.yahoo.com/performance/rules.html