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.
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.
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.
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.
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.