Announcement

Collapse
No announcement yet.

Site loads slow

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    You would need to get rid of this code in the actinic templates to stop the crashing
    Code:
    function detect()
    {
    framesetpage="index.htm";
    thispage=window.location.href;
    if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
    prefix=thispage.substring(0,thispage.lastIndexOf('://'));
    suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
    // alert('the subpage is:['+prefix+']['+suffix+']');
    if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
    }
    and while you are in there, you could delete on of the two javascript yahoosections codes you have in there. That is probably what is causing the loading problem. The first YahooSections builds a page list two levels deep, then the second one immediately builds a page list three sections deep...

    Can't see why you would want to do that.
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #17
      ok thanks. sorry which templates are they?

      Comment


        #18
        You will need to check all the Primary templates - that is any template which starts with Act_ and has Primary anywhere in the name.
        Bill
        www.egyptianwonders.co.uk
        Text directoryWorldwide Actinic(TM) shops
        BC Ness Solutions Support services, custom software
        Registered Microsoft™ Partner (ISV)
        VoIP UK: 0131 208 0605
        Located: Alexandria, EGYPT

        Comment


          #19
          Originally posted by NormanRouxel
          In your primary template Act_Primary.html (and possibly Act_BrochurePrimary.html) remove

          <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

          Note that this will break the YahooSections listing on the left hand side.

          does this only apply to those two templates? or is it every one with Primary in the title. For instance we have act_primary, primary1, primary_cart, primary_left etc

          Comment


            #20
            The ones in Design / Options / Layouts / Primary Templates (click the Edit button to see each one - note that some are duplicated).
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #21
              Originally posted by NormanRouxel
              In your primary template Act_Primary.html (and possibly Act_BrochurePrimary.html) remove

              <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

              Note that this will break the YahooSections listing on the left hand side.

              how can i get rid of the picture menu on the right hand side but keep the menu on the left hand side? is this possible?

              Comment


                #22
                As your section structures are huge you should look at losing everything that uses them.

                I posted an earlier reply (#6) suggesting you only show TOPLEVELSECTIONS.

                In Act_Primary.html (and all other Primary templates in use) replace

                <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

                with

                NETQUOTEVAR:TOPLEVELSECTIONS_RAW

                and replace

                document.write(YahooSections(section_tree))

                with

                document.write(YahooSections(sections))


                You can get more info from the Advanced Guide. Look for Creating a Bulletted List containing the Top-Level Sections
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #23
                  The images are being brought in by this code
                  Code:
                  <table width="100%" cellspacing="2" cellpadding="2"><tr><td align="center"><script language=Javascript1.2>
                  document.write(YahooSections(section_tree_names[1].pChild, section_tree_URLs[1].pChild, section_tree_images[1].pChild)) 
                  </script></td></tr></table> </td></tr></table>
                  You can remove it or comment it out.

                  I see you still have the double pass through the creation of the YahooSections - have you made changes and not uploaded, or are you ignoring everything that is offered to help you?
                  Bill
                  www.egyptianwonders.co.uk
                  Text directoryWorldwide Actinic(TM) shops
                  BC Ness Solutions Support services, custom software
                  Registered Microsoft™ Partner (ISV)
                  VoIP UK: 0131 208 0605
                  Located: Alexandria, EGYPT

                  Comment


                    #24
                    thanks for that.

                    as the website is is so big, it takes approximately 4 hours to do a master upload so im going to leave actinic making the changes when i leave work at 5.

                    Comment


                      #25
                      Originally posted by NormanRouxel
                      replace

                      document.write(YahooSections(section_tree))

                      with

                      document.write(YahooSections(sections))

                      that doesnt appear in the act_primary file but these do:

                      document.write(YahooSections1(section_tree_names[2].pChild, section_tree_URLs[2].pChild))

                      document.write(YahooSections1(section_tree_names[1].pChild, section_tree_URLs[1].pChild))

                      Comment


                        #26
                        OK that makes sense. It may help if I tell you that the images on the right are being loaded by the second YahooSections load - this may be shown as <!--@act NETQUOTEVAR:SECTIONTREE_IMAGES --> in your template, immediately below the other NVQ reference by Norman.

                        The total size of the two js files being created by this code is 1.49Mb and 844Kb, so getting rid of both of those will help considerably, but will not be the last change you need to make - just clear the wood so we can see the trees.
                        Bill
                        www.egyptianwonders.co.uk
                        Text directoryWorldwide Actinic(TM) shops
                        BC Ness Solutions Support services, custom software
                        Registered Microsoft™ Partner (ISV)
                        VoIP UK: 0131 208 0605
                        Located: Alexandria, EGYPT

                        Comment


                          #27
                          Originally posted by wjcampbe
                          this may be shown as <!--@act NETQUOTEVAR:SECTIONTREE_IMAGES --> in your template, immediately below the other NVQ reference by Norman.
                          yes that 1 is shown, in fact i might as well just show you all of them:

                          note - the 3rd one down is one I have corrected from your advice. should there be 2 the same as there is below? (the first and third)

                          NETQUOTEVAR:TOPLEVELSECTIONS_RAW
                          NETQUOTEVAR:CHILDSECTIONS_RAW
                          NETQUOTEVAR:TOPLEVELSECTIONS_RAW

                          NETQUOTEVAR:SECTIONTREE_NAMES
                          NETQUOTEVAR:SECTIONTREE_URLS
                          NETQUOTEVAR:SECTIONTREE_IMAGES
                          NETQUOTEVAR:SECTIONTREE_IMAGEWIDTHS
                          NETQUOTEVAR:SECTIONTREE_IMAGEHEIGHTS
                          NETQUOTEVAR:SECTIONTREE_SECTIONIDS

                          NETQUOTEVAR:TOPLEVELSECTIONS_NAMES
                          NETQUOTEVAR:TOPLEVELSECTIONS_URLS
                          NETQUOTEVAR:TOPLEVELSECTIONS_IMAGES
                          NETQUOTEVAR:TOPLEVELSECTIONS_IMAGEWIDTHS
                          NETQUOTEVAR:TOPLEVELSECTIONS_IMAGEHEIGHTS
                          NETQUOTEVAR:TOPLEVELSECTIONS_SECTIONIDS

                          NETQUOTEVAR:CHILDSECTIONS_NAMES
                          NETQUOTEVAR:CHILDSECTIONS_URLS
                          NETQUOTEVAR:CHILDSECTIONS_IMAGES
                          NETQUOTEVAR:CHILDSECTIONS_IMAGEWIDTHS
                          NETQUOTEVAR:CHILDSECTIONS_IMAGEHEIGHTS
                          NETQUOTEVAR:CHILDSECTIONS_SECTIONIDS

                          Comment


                            #28
                            Sorry, no - it is OK for that full list to be there - it is commented out. The only ones to be concerned about are any that are outside that block and have <!--@act in front of them - these are the ones that are being actioned to produce the lists. There should have been two of them in the original template - one was producing the left hand list ( and you have now hopefully replaced that with the shorter sections list) the other was producing the list of image file names for the right hand side.
                            Bill
                            www.egyptianwonders.co.uk
                            Text directoryWorldwide Actinic(TM) shops
                            BC Ness Solutions Support services, custom software
                            Registered Microsoft™ Partner (ISV)
                            VoIP UK: 0131 208 0605
                            Located: Alexandria, EGYPT

                            Comment


                              #29
                              the site still hasnt updated, i left it over night to upload on actinic but it paused to ask if it was ok to continue uploading at some point. oops.

                              anyway, when making these changes to i need to do a complete refresh (note this takes hours) or an ordinary upload?

                              these are the ones in act_primary that are outside of that block. do i need to alter these?

                              NETQUOTEVAR:SECTIONTREE_NAMES
                              NETQUOTEVAR:SECTIONTREE_URLS


                              also earlier i stated that document.write(YahooSections(section_tree)) does not appear in act_primary. however it does act_primary_left and right. is this any concern? thanks for your help.

                              Comment


                                #30
                                Delete the two that are outside the block (have you put the NETQUOTEVAR:TOPLEVELSECTIONS_RAW in as Norman suggested?)

                                Are you using Act_PrimaryLeft or Act_PrimaryRight anywhere on the site? If you are they are very important, if you are not they do not matter at all.

                                Edit: I missed the question about refresh or ordinary upload. An ordinary upload should work as it will upload all the pages in which the code has changed (every page built from the amended template). Sometimes, though, things go wrong and you do have to do a full refresh. Only thing to do is try ordinary upload.
                                Last edited by wjcampbe; 22-Feb-2006, 10:45 AM. Reason: Answer the first question
                                Bill
                                www.egyptianwonders.co.uk
                                Text directoryWorldwide Actinic(TM) shops
                                BC Ness Solutions Support services, custom software
                                Registered Microsoft™ Partner (ISV)
                                VoIP UK: 0131 208 0605
                                Located: Alexandria, EGYPT

                                Comment

                                Working...
                                X