Click to See Complete Forum and Search --> : 3 Column site, 1 column lags.


TJ13
06-16-2008, 07:55 PM
Hi, I have a 3 column site, with the left and right columns being php includes. This is a small nit pick, but the right column lags and doesn't load right away (no matter how many refreshes), But if I switch the left and right columns and make them appear on the opposite side that's not intended, they work fine. Here are some examples.

http://www.scfreak.org/isnt.php

That is how I want it to display, but the right lags

http://www.scfreak.org/isnt2.php

This is switched, and there is no lag, but it's not how I want the layout.

Any ideas what causes this, and how to fix it? Thanks

Centauri
06-16-2008, 08:22 PM
You have multiple <html> and <body> tags throughout that, probably as a result of them being in the include files - the includes should just contain the base html code and nothing else, no html tags, no body tags, no css tags, JUST the html.

TJ13
06-16-2008, 08:43 PM
I know there is excess code, and the code probably isn't the best in the world but could you point out specific examples(like copy and paste the code section?), and does that explain why it works one way but not the other?

(ok..I think I found it? I took out HTML and Body tags from both include files, so 4 tags total should be removed. But it still does it.)

Thanks.

Centauri
06-16-2008, 09:40 PM
There still seems to be many extra <body>, </body>, <html>, and </html> tags in there (view the page source) - there should only be one of each in the whole page. There is also a missing closing tag on the last Blizzard image in the right column, as well as missing paragraph closing tags </p>, a <ul> tag that shouldn't be there, also an extra </a> tag. The W3C validator (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.scfreak.org%2Fisnt.php&charset=%28detect+automatically%29&doctype=Inline&group=0) will pick up the errors. If the code is not valid, then it would be impossible to work out what is causing the problem.

TJ13
06-16-2008, 09:56 PM
God knows..that code is far from being valid XD.

But..I guess, what fasinates me is, why does it appears correctly backwards. :\ I was hoping maybe someone saw something like this before, or there is a tell tale sign as to why this happens.

By far it doesn't appear like a major problem, I'm sure there can be worse, but it's one that I'm nit picking at for the moment.

Thanks.

Centauri
06-16-2008, 10:25 PM
Probably due to the way the browser handles the order of the invalid code.