We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39131
    • 84 Posts
    Good morning,

    on this site http://www.nmldesign.nl/portfolio/ I'm using getResources to display a portfolio.

    All different projects are separate resources placed as children below http://www.nmldesign.nl/portfolio/.

    In each resource I use TV to select the images. One TV for the portfolio-category, on TV for the image and one TV with Migx which contains the image TV.

    On the portfolio page getResources calls a chunk to display two getImageList chunks. One is used for the first image of the portfolio, the other is used to displayed all other images. Both layouts are slightly different.

    This is the getResources chunk:

    [[getResources? 
    &parents=`2` 
    &tpl=`portfolio-column-3-layout`
    &includeTVs=`1` 
    &processTVs=`1`
    &includeContent=`1` 
    &showHidden=`1`
    &tvPrefix=``
    &limit=`0`
    &depth=`0` 
    ]]


    This is the This is the getImageList chunk (portfolio-column-3-layout):
    <li class="element-item [[+portfolio.category]] ">
         <ul class="clearing-thumbs clearing-feature" data-clearing>
              [[getImageList?
              &tvname=`portfolio.tv`
              &tpl=`portfolio-page-first-image`
              &docid=`[[+id]]`
              &limit=`1`
              &data-caption=`[[+data-caption]]`]]     
              [[getImageList?
              &tvname=`portfolio.tv`
              &tpl=`portfolio-page-other-images`
              &docid=`[[+id]]`
              &limit=`0`
              &offset=`1`
              &data-caption=`[[+data-caption]]`]]
         </ul>
    </li>


    Only problem is that the footer is loaded partly in the images, see attachment. It appears to happen mainly on slower internet connections.

    I'm using Cloudflare and Maxcdn for boosting the site.

    Any ideas how I can prevent this problem?

    Thanks in advance!



      • 4172
      • 5,888 Posts
      while the server-side-part (getResources/getImageList-rendering) could be opimized for sure a little bit, it is not the main-reason, why its slow.
      The response-time is something around 200-250ms, which is not that bad.

      Its the loading of all the images/javascripts and everything, which lets the user wait.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 39131
        • 84 Posts
        @Bruno Thanks for your reaction. What I find strange is that the footer is on top of the images of the portfolio. I don't know how I can prevent that from happening. Any ideas?


          • 4172
          • 5,888 Posts
          dont't have that issue here.

          I think this is a javascript-timing-issue, when sizing/positioning the images.
          What happens, when you resize the sreen, after that issue has happend?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 39131
            • 84 Posts
            Problem is that it just happens every now and then. Can not replicate it now.

            It looks like the portfolio is still building (although being cached and served via maxcdn), but the footer is already put in place.

            It is also the only page on the site that shows this behaviour.