Zen Cart Logo
Forums / General Questions / Home page randomly part loading

Home page randomly part loading

Views: 1,328

Results 1 to 3 of 3
25 Jun 2011, 3:17 PM
#1
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Home page randomly part loading

Got a weird situation in that the home page of http://www.fastlec.co.uk sometimes doesn't fully load either when arriving, or when clicking on home link (text link or logo) from within site - even if already on a fully loaded home page!

This has only recently started happening (or perhaps it's more accurate to say has only recently been observed).

Site is running 139h and has been since last September.

Seems to be an entirely random occurrence. I have tried turning off all sideboxes in left columns but it makes no difference - sometimes the page loads, sometimes only the header and however many sideboxes are turned on.

I have tried turning off define_main_page.

Apart from the addition of products (and I've checked that there are no excessively large images), there's been no changes to the site for several months - apart from the Trustpilot widget, but that loads as part of the header so is present even when the page only partially loads.

There are no errors being generated. It is not just me - the client, his staff and customers have all reported it.

There are no issues with any other page - just the home page.

This has got me stumped - I'd welcome any suggestion as to what I should be looking for?

25 Jun 2011, 3:47 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Home page randomly part loading

I see a few things going on which should be corrected.

Do not write script tags like this:

<script type="text/javascript"> ... </script>

Instead, write them as:

<script type="text/javascript"> /*<![CDATA[*/ ... /*]]>*/ </script>

Same applies to CSS.

<style type="text/css"> /*<![CDATA[*/ .... /*]]>*/ </style>

Using the above will prevent all kinds of Validation errors and other strange events.

You cannot put Style blocks within the BODY tags.

<style type="text/css"> ... </style> <!-- /Trustpilot Widget Script --> <br class="clearBoth" /> <!--eof-branding display-->

Move it to include within this file:
includes/templates/YOUR_TEMPLATE/common/html_header.php

There are a few anchor links not quite correct:

<a href=" http://www.fastlec.co.uk/blog/"><img src="./bm_images/header/blog.png"

  • no space after the ="

Also, rather than write as:

<a href="http://www.fastlec.co.uk/blog/"><img src="./bm_images/header/blog.png"

Better to just use:

<a href="http://www.fastlec.co.uk/"><img src="bm_images/header/blog.png"

After working on the above, let's see where things are.

25 Jun 2011, 4:49 PM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Home page randomly part loading

Thanks - that's very useful. Will implement and keep on eye on it.