I created a page that dynamically updates an iFrame depending on variables passed through the URL.
You can see the page here: http://www.bluelinkerp.com/corporate/clientlist.asp
My question is: does this reduce the page load time?
It may seem like a stupid question but it seems to me like there is only one iFrame loaded at a time (a user needs to click another link to load a different iFrame).
This is an effective way of reducing the size of a page, right?
In a sense, you might consider it "reducing the size of a page" because you're trading one big page for multiple smaller pages.
But ultimately, the browser has to download all the smaller pages anyway, so the total "size of the page" isn't any smaller.
In fact the total size is a little larger and there are two requests to the server instead of one. Not that the difference will be noticeable, but I'd say the frame version would be the slower. And there are of course problems with frames. You don't use alt text for the logos (you should). But if you did, what page would you like search engines to find? This http://www.bluelinkerp.com/corporate/client-industry/food-beverage-import-distribution-wholesale.html or this http://www.bluelinkerp.com/corporate/clientlist.asp ?
No, I'm saying that with a normal static page that has an iframe two requests are made to the server and two pages are loaded, the main page and the page in the iframe. There is also more HTML since each document needs HEAD and so on.
If you load a new document with a only a part changed instead of using an iframe, most things that matter size-wise should already be cached. Images, style sheets, scripts. Provided you use external style sheets and scripts of course. The only gain is that the text doesn't have to be reloaded, but text doesn't weigh much compared to even the tiniest of images and as said the framed document adds HTML (HEAD and so on). I don't think the dynamic part changes any of this.
Add to that the inherent problems with frames. I don't think it's worth it even if it would be a few msec faster which I don't think it is.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)