If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Page loading incorrectly

Page loading incorrectly

Started by nicksab on 31 Mar 2013, 7:02 AM · Views: 1,660

Results 1 to 14 of 14
31 Mar 2013, 7:02 AM
#1
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #1 by nicksab

Hey everyone,

I am having issues with my store at www.royal-fleur.com

When I go to the store from google or else, the page loads up incorrectly. It is completely to the left of the screen and the featured product in center column are all over the place.

After going to my store and then refreshing the page, it loads up correctly with everything center in the middle as it is supposed to be.

What could be causing the page to load incorrectly the first time? CSS? or else?

Any help would be more than appreciated

Thank you

31 Mar 2013, 8:24 AM
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #2 by design75

One of the problems qould be that you are loading three instances of jquery

<script type="text/javascript" src="engine1/jquery.js"></script>
<script type="text/javascript" src="includes/templates/royal_fleur/jscript/jscript_jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="includes/templates/royal_fleur/jscript/jscript_jquery.js"></script>
5 Apr 2013, 5:37 AM
#3
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #3 by nicksab

Thank you for the reply and your help on this matter.

I think I removed the extra instance of jquery.

I have only this one left in the page source: <script type="text/javascript" src="includes/templates/royal_fleur/jscript/jscript_jquery-1.7.1.min.js"></script>

But I am still having the same issue. The page are loading incorrectly ( left sidebox in the center then moving to the left ) when switching between categories and/or product.

Any suggestions on this problem would be more than appreciated.

Thank you

5 Apr 2013, 12:43 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #4 by stevesh

I'm not seeing the problem you described, but it might be caused by the fact that you have the width of #mainWrapper set to 1450px. Most of your potential customers use monitors with less resolution than that, which gives us a horizontal scroll bar - very annoying. If you think you need full screen width, try setting #mainWrapper to 100%.

5 Apr 2013, 1:34 PM
#5
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #5 by lhungil

nicksab:

But I am still having the same issue. The page are loading incorrectly ( left sidebox in the center then moving to the left ) when switching between categories and/or product.
Bear with me as I am probably not going to be able to explain this very well...
You have some nesting errors with your templates... Some unmatched start / end tags (especially in the top navigation)... Another in "<!--// bof: blanksidebox //-->"... This can cause some rendering issues as the browser has to make guesses...

Could be related to using tables as a layout mechanism and not specifying the width of all columns. This can cause some issues with slow rendering in some browsers as the computed widths (and padding) of a column can change while the content (images, script added components, etc) is being downloaded and rendered. When the table is first displayed - not all the contents have been downloaded / rendered - and the table is displayed with sizing based upon minimal components... then as the components (images, scripts, etc) are loaded - the table columns are re-sized by the browser.

Quick tests this morning also reveal a slow page load for me... Which probably makes the slow render more obvious. Tests via webpagetest.org and firebug are showing:
Page Load: 9s-12s First Byte: 1.8s-2.4s Start Render: 2.4s-3s

Probably unrelated, but you may want to fix...
There are a couple minor errors with on of the JavaScript snippets on your site (check firebug or similar) you may wish to correct (initially it looks like some extra "."s). Also the links in your top navigation are not being properly escaped for XHTML - you need to replace the "&"'s with "&"s inside href attributes when using XHMTL.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

7 Apr 2013, 6:25 AM
#6
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #6 by nicksab

lhungil:

Bear with me as I am probably not going to be able to explain this very well...
You have some nesting errors with your templates... Some unmatched start / end tags (especially in the top navigation)... Another in "<!--// bof: blanksidebox //-->"... This can cause some rendering issues as the browser has to make guesses...

Could be related to using tables as a layout mechanism and not specifying the width of all columns. This can cause some issues with slow rendering in some browsers as the computed widths (and padding) of a column can change while the content (images, script added components, etc) is being downloaded and rendered. When the table is first displayed - not all the contents have been downloaded / rendered - and the table is displayed with sizing based upon minimal components... then as the components (images, scripts, etc) are loaded - the table columns are re-sized by the browser.

Quick tests this morning also reveal a slow page load for me... Which probably makes the slow render more obvious. Tests via webpagetest.org and firebug are showing:
Page Load: 9s-12s First Byte: 1.8s-2.4s Start Render: 2.4s-3s

Probably unrelated, but you may want to fix...
There are a couple minor errors with on of the JavaScript snippets on your site (check firebug or similar) you may wish to correct (initially it looks like some extra "."s). Also the links in your top navigation are not being properly escaped for XHTML - you need to replace the "&"'s with "&"s inside href attributes when using XHMTL.

Thank you for your reply.

I am still really new at this and not an expert in script.

What is the best way to solve these problems you mentioned? I know that my store takes a long time to load. I have been looking into and I can t figure how to make the page load faster for a better e-store. I have been looking at the parse time for a while and sometimes the page takes over 10 s to load.

Could you please help him with what needs to be fixed and to fix it? I know you mentioned a few things but I am clueless on how or where to start fixing fix if I can.

Thank you

7 Apr 2013, 7:53 AM
#7
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #7 by nicksab

lhungil:

Bear with me as I am probably not going to be able to explain this very well...
You have some nesting errors with your templates... Some unmatched start / end tags (especially in the top navigation)... Another in "<!--// bof: blanksidebox //-->"... This can cause some rendering issues as the browser has to make guesses...

Could be related to using tables as a layout mechanism and not specifying the width of all columns. This can cause some issues with slow rendering in some browsers as the computed widths (and padding) of a column can change while the content (images, script added components, etc) is being downloaded and rendered. When the table is first displayed - not all the contents have been downloaded / rendered - and the table is displayed with sizing based upon minimal components... then as the components (images, scripts, etc) are loaded - the table columns are re-sized by the browser.

Quick tests this morning also reveal a slow page load for me... Which probably makes the slow render more obvious. Tests via webpagetest.org and firebug are showing:
Page Load: 9s-12s First Byte: 1.8s-2.4s Start Render: 2.4s-3s

Probably unrelated, but you may want to fix...
There are a couple minor errors with on of the JavaScript snippets on your site (check firebug or similar) you may wish to correct (initially it looks like some extra "."s). Also the links in your top navigation are not being properly escaped for XHTML - you need to replace the "&"'s with "&"s inside href attributes when using XHMTL.

I checked the blank sidebox as mentioned and added the missing <a> tag. I also specified width for the table but the problem still persist.

I tried to look for th javascript snippets as you mentioned but I did not see anything.

Thank you for helping me with this

8 Apr 2013, 12:30 PM
#9
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #9 by lhungil

nicksab:

... I know that my store takes a long time to load. I have been looking into and I can t figure how to make the page load faster for a better e-store. I have been looking at the parse time for a while and sometimes the page takes over 10 s to load. ...
Are your parse times high? More than a few fractions of a second? If so... Your hosting provider is either having some issues... Or has overloaded servers... And this may be part of the cause for slow page loads... 4+ seconds seems a bit high for "Query Time"...

"www.webpagetest.org", "tools.pingdom.com", and YSlow / Firebug are all good starting places for checking the basics.

nicksab:

... I know you mentioned a few things but I am clueless on how or where to start fixing fix if I can.
"validator.w3.org"
The most glaring ones are the "end tag for ... omitted". Your template designer should be able to help you fix the errors in the templates... And also should be able to help you track down / fix the layout appearing to jump around as content is loaded.

I see "//script added by Get Em Fast Web Designs" on your site. If you paid them to install / create some custom navigation (including JavaScript)... You may want to contact them and ask them to fix: 1) the JavaScript and 2) the URLs in the navigation.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

8 Apr 2013, 1:30 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

You might check what is calling:
/includes/templates/royal_fleur/jscript/jquery-1.4.4.min.js

as it appears to be missing and wastes a bit of time ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Apr 2013, 5:24 AM
#11
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #11 by nicksab

Ajeh:

You might check what is calling:
/includes/templates/royal_fleur/jscript/jquery-1.4.4.min.js

as it appears to be missing and wastes a bit of time ...

It is being called by zen lightbox. I removed jscript_jquery-1.4.4.min.js because I have another add on calling for jscript_jquery-1.7.1.min.js.

Zen light box seems to still be working fine without it. How can I fix it from here?

Thank you

10 Apr 2013, 5:29 AM
#12
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #12 by nicksab

lhungil:

Are your parse times high? More than a few fractions of a second? If so... Your hosting provider is either having some issues... Or has overloaded servers... And this may be part of the cause for slow page loads... 4+ seconds seems a bit high for "Query Time"...

"www.webpagetest.org", "tools.pingdom.com", and YSlow / Firebug are all good starting places for checking the basics.

"validator.w3.org"
The most glaring ones are the "end tag for ... omitted". Your template designer should be able to help you fix the errors in the templates... And also should be able to help you track down / fix the layout appearing to jump around as content is loaded.

I see "//script added by Get Em Fast Web Designs" on your site. If you paid them to install / create some custom navigation (including JavaScript)... You may want to contact them and ask them to fix: 1) the JavaScript and 2) the URLs in the navigation.

I did the template myself so I probably messed up somewhere. I did not paid anyone and I did the template by modifying zen cart default template. The credit to get Em Fast Web Designs is prob coming from a code I copied or else. I would look into the link you suggested to pinpoint all errors.

Parse are high most of the time. Going from 1.5 to even 6 or 7 sometimes while the number of query are around 220 for main page. Parse time are enble on the store so if you want to check it out.

Thank you for your help

10 Apr 2013, 6:18 AM
#13
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #13 by design75

nicksab:

It is being called by zen lightbox. I removed jscript_jquery-1.4.4.min.js because I have another add on calling for jscript_jquery-1.7.1.min.js.

Zen light box seems to still be working fine without it. How can I fix it from here?

Thank you

go to includes\classes\zen_lightbox\slimbox.php and remove the line (around line 12)

echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.4.4.min.js"></script>';

as long as you are loading another (higher) jquery version, lightbox will work.

13 Apr 2013, 6:24 AM
#14
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #14 by nicksab

Design75:

go to includes\classes\zen_lightbox\slimbox.php and remove the line (around line 12)

echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.4.4.min.js"></script>';

>  as long as you are loading another (higher) jquery version, lightbox will work.

Thank you.