SimplePortal

Support => English Support => Topic started by: amko_sa on January 17, 2011, 12:04:49 PM

Title: Page load problem
Post by: amko_sa on January 17, 2011, 12:04:49 PM
Hi,

I have one question about my page loading in simple portal 2.3.3
I have activated simpleportal left side blocks on my forum. In my blocks I am put google adsense code and div tag center because I want to be ads in center. On every my blocks I use div tag center. After that when my page is loading for first time (when page is not in browser cache) I have left blocks protectedly for moment like this:

(http://img707.imageshack.us/img707/9794/example1i.jpg)

and after that block looks fine like this:

(http://img607.imageshack.us/img607/7941/example2.jpg)

How to make left blocks position absolute when page loading.

Sory about my English and I hope that you understood what I think  8)
Title: Re: Page load problem
Post by: AngelinaBelle on January 17, 2011, 12:12:07 PM
Please give a link.
What I see, I understand (some times)
 
 
Thanks
Title: Re: Page load problem
Post by: amko_sa on January 17, 2011, 12:13:02 PM
This is link:

http://newsapp.info/index.php

The left blocks is for a moment over complete first page. Maybe this help I dont know how to describe this in english.
Title: Re: Page load problem
Post by: AngelinaBelle on January 17, 2011, 02:16:35 PM
You have HTML errors -- please use the XHTML validator at the bottom of the page.
Most browsers can figure out a reasonable way to render a page when you have too many closing tags, but it does slow things down a bit.
Title: Re: Page load problem
Post by: amko_sa on January 17, 2011, 02:50:31 PM
I don't think that HTML errors cause this but I will try. Tnx
Title: Re: Page load problem
Post by: AngelinaBelle on January 19, 2011, 10:09:51 AM
I'll be happy to take another look when the HTML errors are gone.
Thanks
Title: Re: Page load problem
Post by: amko_sa on January 21, 2011, 01:00:24 PM
I am fix most html errors. On first page I have only one error and I dont know how to fix it. On all other page I have two html errors.

I am decide to write here one code from my left blocks. I think that is my problem only <div align="center">. Code is correct but div center cause protectedly for a moment.

Code: [Select]
<div style="background-color:#f8f7f4;border: double 10px #e1ddd3;">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "*********";
/* 160x600, created ****** */
google_ad_slot = "*********";
google_ad_width = ***;
google_ad_height = ***;
//-->
</script>

When I write every left block with <div align="left"> problem is gone.
 example:

Code: [Select]
<div style="background-color:#f8f7f4;border: double 10px #e1ddd3;">
<div align="left">
<script type="text/javascript"><!--
google_ad_client = "*********";
/* 160x600, created ****** */
google_ad_slot = "*********";
google_ad_width = ***;
google_ad_height = ***;
//-->
</script>

Is this only way to center custom content of my left blocks?

Title: Re: Page load problem
Post by: AngelinaBelle on January 21, 2011, 03:46:46 PM
I think the page is rendered faster now that you fixed most of the errors.
I don't think SimplePortal is causing any problem. Do you?
 
You can fix the 2 remaining errors on the front page:
 
1) The checker is still upset about the empty <ul> in your <div id="submenu">
    You can take out the empty list or remove the unused div.
2) XHTML requires <img /> and <br />, etc. so
Code: [Select]
<img src="http://sstatic1.histats.com/0.gif?1050449&101" alt="hit counter html code" border="0">should be
Code: [Select]
<img src="http://sstatic1.histats.com/0.gif?1050449&101" alt="hit counter html code" border="0"/>
align=center is deprecated, because it can be done in style="", but this should still not be much of a problem.
Code: [Select]
<div align="center"> can also be handled in CSS
Code: [Select]
<div style="text-align: center">
Title: Re: Page load problem
Post by: amko_sa on January 21, 2011, 05:01:51 PM
I have now only one xhtml error, some bug from previous version of smf 2 (possibly in my new theme - Display template).

To be honest I thought it was a simple portal issue because content of block affects page loading but now I'm not sure maybe problem is my new theme.
This is not a real problem, it bothers me only how it looks visually.
I will try couple options and this variant: <div style="text-align: center">

Thank you AngelinaBelle  :)
Title: Re: Page load problem
Post by: AngelinaBelle on January 22, 2011, 07:15:31 PM
Glad to help.
SimplePortal 2.3.8 © 2008-2024, SimplePortal