• Resolved sharstro60

    (@sharstro60)


    SmugMug Masonry with 50 to load each time, 3 columns (also tried with automated columns)

    1. On page initiation, first load of 50 items successful
    2. Hit Load More Button
    3. Page loads with 1st and 2nd column changing pictures, but the 3rd column is a duplicate to the 2nd column
    4. Hit Load More Button
    5. Page loads successfully with no duplications across columns

    Plugin Version 2.61
    Word Press 5.6

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    You have a problem with your caching.

    There are two copies of Photonic that are being loaded due to your caching setup – one is going through the standard route, using https://staging.elegantimagez.com/wp-content/plugins/photonic/include/js/front-end/module/combo-slider/photonic-photoswipe.min.js. Another is getting loaded via your “Auto Optimize” plugin – probably https://staging.elegantimagez.com/wp-content/plugins/photonic/include/js/front-end/nomodule/combo-slider/photonic-photoswipe.min.js (note that this has nomodule in the path and the first one has module in the path). Normally Photonic loads both files, but with different directives:

    <script nomodule src='https://staging.elegantimagez.com/wp-content/plugins/photonic/include/js/front-end/nomodule/combo-slider/photonic-photoswipe.min.js'>
    <script type='module' src='https://staging.elegantimagez.com/wp-content/plugins/photonic/include/js/front-end/module/combo-slider/photonic-photoswipe.min.js'>

    This lets modern browsers use the second line, while old browsers like IE11 use the first line.

    But since in your case both files are being loaded individually, when you are clicking on “Load More”, two calls are being made, and two sets of data are being returned.

    You will need to configure your caching plugin to exclude both Photonic files, or you will continue getting this problem.

    adding plugins/photonic to the comma-separated JS optimization exclusion list should do the trick ??

    frank (ao dev)

    Thread Starter sharstro60

    (@sharstro60)

    you guys are the best. Worked like a charm.. and thanks for such a quick response with the holidays and all.

    Regards
    Sharon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Smugmug Masonry Load More Dup Photos In Column’ is closed to new replies.