• Resolved mlovric

    (@mlovric)


    Sometimes, the same image is loaded two times from the Flickr, after clicking on the load more button.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mlovric

    (@mlovric)

    Thread Starter mlovric

    (@mlovric)

    Just now checked the steps from the
    https://wordpress.org/support/topic/double-image-loading-from-flickr/

    After I noticed that a double image is loaded, I counted all loaded images on the client-side (WordPress page), and the number is the same as from the https://www.flickr.com/services/api/explore/flickr.photos.search
    But they are not injected correctly, some images are injected twice and obviously
    some are missing

    • This reply was modified 4 years ago by mlovric.
    Thread Starter mlovric

    (@mlovric)

    That being said, I think that is a problem on the client-side with injecting images from the flickr response to the new adjusted layout. With the new adjusted layout, I am referencing on the new layout that is recalculated after the load more button is clicked.

    • This reply was modified 4 years ago by mlovric.
    Plugin Author Sayontan Sinha

    (@sayontan)

    That being said, I think that is a problem on the client-side with injecting images from the flickr response to the new adjusted layout.

    Not sure if I understand you. What is it that you are saying is the problem? The fact that the last two photos’ size is changing when you add new photos? That is to be expected with the Justified Grid layout.

    Thread Starter mlovric

    (@mlovric)

    Correct, but there is some problem after the layout is changed, the wrong image is injected in some places, causing some images to be injected twice.
    You can go to this URL
    https://croclick.com/portfolio-items/komercijalne-usluge/
    and try to load all images a few times. You will visually see that some images are loaded twice randomly, and I don’t have any double images on the Flickr.

    • This reply was modified 4 years ago by mlovric.
    Plugin Author Sayontan Sinha

    (@sayontan)

    As explained in my previous post, I cannot help out much here since your Flickr content is private.

    It is not simply a question of counting images in the API or on your page – you would have to compare each image in the API call output with what was already existing. Photonic never pulls information that it cannot see – for a certain photo to show in your layout, it must come from the API call. So if you are seeing double images, those have to be coming from the API – Photonic will never look through older photos.

    Also note that you are searching photos using a tag and sorting by date. As I have mentioned previously, it is possible that for your data, Flickr’s API is messing up the page boundaries and is showing photos from the previous page under some conditions. You can try changing your search conditions and use albums etc. instead of using tags.

    If you need me to provide specific examples to you, you will have to remove the privacy restriction from your Flickr content.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Double image loaded randomly – Flickr’ is closed to new replies.