Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Iframe slows my webpage

  1. #1
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe slows my webpage

    Dear,
    I make a site for my client i paste three iframes in it which two is randomly changed contents and one is static, my problem is that everything going ok but when my page loaded it become hang for some time no browser scroll and make very stange and when it loaded i scroll the page it become slow scrolling and also i use shadow gradient for shadow it also make slow my navigation whe i mouse over links fast i feel and also you feel it becomes slow please help me this is url where is my page

    http://wkgb.110mb.com/index.html
    Last edited by shahjee99; 03-21-2007 at 12:23 PM.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    The message scrolls slow when you scroll with a browser, because the page is being moved up and down, and if it wasn't slowed down it would probably skip. This is a browser function, nothing else. It's not a part of your script that is the problem.
    - Mike

  3. #3
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Dear,
    I can't understand your answer, actually my problem is not message scrolling, my problem is page scrolling slow and some time hard to scroll it is the basic problem thanx in advance and please help me

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Hmm... The page scrolls fine for me.
    What browser are you using?
    - Mike

  5. #5
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Dear,
    I use internet explorer 6.0 please tell me also browser scrolling and also when the shadow gradient load, i mouseove the links the speed also slow pointer of mouse look very slow work please help help help thanx in advance

  6. #6
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You're right the hovers on the text links and scrolling is a bit slower then normal. I will look into the code and let you know if i find something wrong. And just so you know your webpage opens totally unformatted on Mozilla FireFox.

  7. #7
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    From what i have observed .. your using very lengthy css to achieve something which can be achieved pretty easily. First of all make sure you fix the javascript bug on that web page (your missing a semi-column some where). Next try to use
    Code:
    padding:[top padding]px [right padding]px [bottom padding]px [left padding]px;
    Instead of placing them individualy like:
    Code:
    padding-top:[top padding]px;
    padding-right:[right padding]px;
    padding-bottom:[bottom padding]px;
    padding-left:[left padding]px;
    Also you must realize that whatever css property you define for an upper level element will apply for every element that lies under it, unless that property is overwrited or not supported for that element.

    Let me give you an example. You currently have this code in your CSS for elements with class "ddmarkermenu".

    Code:
    .ddmarkermenu {
    	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 2px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
    }
    .ddmarkermenu LI {
    	PADDING-BOTTOM: 0px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px
    }
    .ddmarkermenu LI A {
    	PADDING-RIGHT:0px; DISPLAY: block; PADDING-LEFT: 19px; FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND: url(images/blue_icon.gif) no-repeat left center; PADDING-BOTTOM: 1px; COLOR: #449805; PADDING-TOP: 0px; BORDER-BOTTOM: #ececec 1px solid; TEXT-DECORATION: none
    }
    .ddmarkermenu LI A:visited {
    	COLOR: #449805
    }
    .ddmarkermenu LI A:hover {
    	COLOR: #fff; BACKGROUND-COLOR: #51b906
    }
    Could be converted to:

    Code:
    .ddmarkermenu {
    	padding:0;
    	margin:0 0 2px;
    	list-style-type: none;
    }
    .ddmarkermenu LI {
    	padding:0 3px 0 3px;
    }
    .ddmarkermenu LI A {
    	padding:0 0 1px 19px;
    	display:block;
    	text-decoration:none;
    	font:Tahoma normal bold 10px;
    	background:url(images/blue_icon.gif) no-repeat left center;
    	color:#449805;
    	border-bottom:#ececec 1px solid;
    }
    .ddmarkermenu LI A:visited {
    	color:#449805;
    }
    .ddmarkermenu LI A:hover {
    	color:#fff;
    	background-color:#51b906;
    }

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Changing the way the css is written (as long as the actual style isn't changed) probably won't have much effect on speed. It certainly will make the code easier to read, at least for most folks.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Dear jscheuer1,
    I can't understand your reply, am i right that what i understand from your reply that you say, Sparaker ask me to change css and then it is ok, but you say that it is not for changing the css so please dear you solve my problem a bundel of thanx for you in advance please help me the javascript error is not my error in my page i actually get a ticker from a site it gives me error but it is not problem, problem to me slow navigate and please also tell me how to write right code for both ie and firefox thanx

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by shahjee99 View Post
    Dear jscheuer1,
    I can't understand your reply, am i right that what i understand from your reply that you say, Sparaker ask me to change css and then it is ok, but you say that it is not for changing the css so please dear you solve my problem a bundel of thanx for you in advance please help me the javascript error is not my error in my page i actually get a ticker from a site it gives me error but it is not problem, problem to me slow navigate and please also tell me how to write right code for both ie and firefox thanx
    Whatever works. I just don't happen to think Sparaker's idea will speed things up much, I may have misunderstood, if so - Great! I am not at this time offering my own solution.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •