We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Sorted.

    Had a duplication problem going on in the main template as well as the content body.

    All OK now, thanks everyone.
      Content Creator and Copywriter
      • 18367
      • 834 Posts
        Content Creator and Copywriter
      • You're getting a couple of seconds of content not positioned correctly. You might want to try putting the main jquery and the lightbox (or whichever one is handling all those blocks) javascript in the head, to make sure that all of those images are being handled by the javascript right away. As it is, they aren't being handled until everything else gets done on the page. One or two .js files in the head won't slow your page rendering enough to notice.


        I would also take all of the "boilerplate" CSS and put it into one file and run it through one of those CSS minimizers, like http://csscompressor.com/ Then I would have one extra "overrides" .css file that gets edited for custom styling, overriding the "boilerplate" CSS. That way instead of the browser having to request, download and process seven CSS files, there would only be two, and the big one would not have any whitespace or comments or other stuff the browser has to parse past.

        And finally, in my opinion anyway, you have far too many blocks on one page. I'd cut it off at about the same level as the sidebar, five rows instead of nine.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 18367
          • 834 Posts
          Thanks Susan,

          yes all on the to do list.

          The sheer number of blocks was a legacy of not being able to get the pagination to work. Now that that's fixed I've reduced the number to four.

          I did move the relevant js file into the head, but that didn't seem to make that much difference. The site is also being served by a CDN so it should be faster than it is at the moment. Why it isn't is a bit of a mystery.

          Absolutely right about the number of css and js files needing to be combined. In fact a lot of them can just go, I just haven't done it yet or figured out which bits are unnecessary.

          And as I said, the CDN is supposed to be combining and compressing those files anyway.

          More work to do.



          [ed. note: markg last edited this post 9 years, 7 months ago.]
            Content Creator and Copywriter
          • Well, that's a relief! I'm definitely not a designer but some principles have rubbed off on me over the years.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org