• Resolved psicologamarianna

    (@psicologamarianna)


    Is there an option to prevent calling admin-ajax.php everytime the user refreshes the page?
    I want to lazy-load the feed images, so if the plugin has already cached the resized images onto wp-content/upload folder, why is it loading images everytime I refresh the page? Isn’t it supposed to serve the cached images from local server only when the user rolls the page to the feed area?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter psicologamarianna

    (@psicologamarianna)

    I have observed that after some refreshes the admin-ajax.php is not requested anymore, but that causes the images not being displayed, instead it shows a blank placeholder. When I open console and type sbi_init() the images are shown, alternatively if I refresh the page, the problem comes back (blank placeholder) but if I resize the window some hidden function is triggered and the images are shown again.
    This problem is only present when I use my Desktop PC, on mobile the images are displayed correctly as expected (lazy-loaded, the images only show if I scroll the page)

    Plugin Support Smash Balloon Mike

    (@smashballoonmike)

    Hey @psicologamarianna,

    Thank you for reaching out to us. The plugin defaults to loading the feed through AJAX by default to prevent slowing down the page load. You can disable the AJAX loading by going to Instagram Feed > Customize > Misc > enable Disable JS Image Loading > click Save Changes.

    We show the feed is pulling from the API currently and you have a GDPR plugin enabled, the images are not displayed until the cookies have been accepted. We were not able to replicate this issue of the images missing until the browser window is resized. Are you still seeing this issue on your end?

    Many thanks,

    Thread Starter psicologamarianna

    (@psicologamarianna)

    Hi,

    I was doing some tests about the time you answered, so maybe you didn’t notice the problem. You can test now, please do the following:

    1. Open instagram-feed

    2. Accept cookies

    3. The images will load normally

    4. Refresh the page

    5. The images won’t display

    6. Minimize browser window

    7. The images suddenly appears (without calling admin-ajax.php)

    Thread Starter psicologamarianna

    (@psicologamarianna)

    Also, when using mobile device there is no problem and everything works appropriately

    Plugin Support Smash Balloon Mike

    (@smashballoonmike)

    Hey @psicologamarianna,

    Thank you for the additional information. Can you go to Instagram Feed > Customize > Misc > enable Load initial posts with AJAX > click Save Changes to see if this resolves the issue?

    Many thanks,

    Thread Starter psicologamarianna

    (@psicologamarianna)

    Now it’s calling admin-ajax.php and my website performance went down drastically, I don’t want that. I will turn Load initial posts with AJAX OFF to turn back to the initial problema, which is: the images only load when using mobile or when resizing window on desktop.

    Plugin Support Smash Balloon Mike

    (@smashballoonmike)

    Hey @psicologamarianna,

    Can you open a ticket on our site here and can you provide details in your ticket about the way you are checking your site performance?

    Many thanks,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘POST admin-ajax.php every refresh’ is closed to new replies.