• Resolved peopleinside

    (@peopleinside)


    Hi, happy new year! I hope you are fine!

    I’m back using your plugin, seems now the loading screen is showed correctly in all page and subpage. I have just one issue that I don’t see how to resolve and why happen.

    Even if the plugin is configured to show loading on all pages, the loading is not showed in the home page. If I change plugin settings and put to load only to home page works, if I put back the settings to loading on all page works and.. after some minutes, the loading screen is no more showed in the home page. Seems after a while from when I set the settings to work correctly, the loading screen is no more showed in the home page.

    Any idea on how can diagnose why this happen and understand if I could do something to fix this? If you load my website now you should not see the loading in the home page, even if is activated. Thanks.

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

Viewing 5 replies - 31 through 35 (of 35 total)
  • Thread Starter peopleinside

    (@peopleinside)

    The issue seems to be solved. This fix will be included in future versions or what I have to do to not loose this? I’m so happy to see the plugin is working now. I cannot believe ??

    Plugin Author codepeople

    (@codepeople)

    Hello @peopleinside

    Thank you very much for letting me know the issue was solved.

    I’ll implement a definitive solution for the coming plugin update.

    Best regards.

    Thread Starter peopleinside

    (@peopleinside)

    Have you idea on why that part of commented code caused the issue? I think the issue is resolved because after more then hour the issue seems is not happening again. I will monitor but it’s really seems fixed. I hope. Thank you! I’m really happy about this so I can stay with your plugin ??

    Plugin Author codepeople

    (@codepeople)

    Hello @peopleinside

    The code tries to identify the search engine spiders and crawlers to avoid loading the loading screen when the website is indexed. The cache handling plugin updates the cached version of the website in the background without an HTTP_USER_AGENT.

    Instead of commenting the piece of code, you can modify it as follows:

    
    if (
      isset( $_SERVER['HTTP_USER_AGENT'] ) &&
      preg_match( '/bot|crawl|slurp|spider/i', sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) )
    ) {
      return $loading_screen;
    }

    Best regards.

    Thread Starter peopleinside

    (@peopleinside)

    With the last code you provided the issue is back again. I will comment it as this last code still show the issue. Just to let you know this new code is still causing the issue. I will roll back to comment the code as this seems fix. If you found another code fix let me know that I will test ??

    I hope to see no more back this issue in future update so I’m here to help you with test if you need.

Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘Loading issue on the home page’ is closed to new replies.