Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Brave

    (@getbrave)

    @renaisonp Can you please enable the Ajax load option and see if that fixes the issue?

    Thanks

    Thread Starter renaisonp

    (@renaisonp)

    Yes, I just put all the popups with this Ajax function and it seems to improve the speed, Brave is no longer on alert.

    But what is the difference in operation if we activate Ajax?

    Plugin Author Brave

    (@getbrave)

    @renaisonp The popup content are lazy loaded when this option is enabled. So when the page first loads, the popup content is not loaded inside the page. When the popup is opened, a request is sent to the server and the popup content is fetched and then inserted inside the popup.

    Hope that makes sense.
    Regards

    Thread Starter renaisonp

    (@renaisonp)

    Ok thank you.

    But what I don’t understand is that popups are disabling on mobile, so why these speed impacts?

    Plugin Author Brave

    (@getbrave)

    @renaisonp Its becuase its possible to detect whether the user is accessing the site using a mobile or a desktop only when the page is loaded. So Brave loads both the desktop and the mobile version, and then hides the mobile version when the user’s device is determined.

    Hope this makes sense.

    Regards

    Thread Starter renaisonp

    (@renaisonp)

    Hello,

    Today no more popups are displayed, although the plugin is active and I haven’t changed anything.

    Except yesterday the java function for all popup.

    Can you check ?

    Plugin Author Brave

    (@getbrave)

    @renaisonp Its probably becuase you are caching the whole page with WPRocket. Try reducing the cache expiration time to 6 hours and clear the cache and see if that fixes the issue. You can also disable the whole page caching.
    https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespan

    Regards

    Thread Starter renaisonp

    (@renaisonp)

    No, I can't clear the cache every 6 hours. You know that on WP Rocket we have a preloading of pages and that would mean that I have to preload 400 pages every 6 hours, it's not possible, especially since this action is manual for us.
    
    And I can't disable whole page caching, otherwise what would WP Rocket be for?
    and I would have a bad Googlespeed score.
    
    Really I don't understand, all my plugins have always worked, even other Popup plugin like Icegram Engage Pro which also does Exit Intent
    Thread Starter renaisonp

    (@renaisonp)

    If to have correct GoogleSpeed ??results you must activate Java and if the activation of Java requires emptying the cache every 6 hours, the plugin does not allow optimal operation on a WP site.

    And you know pages need to be cached today.

    A lot of work and purchase pro version for nothing.

    We will have to ask Paypal refund for pro version if bad scores and if it does not cache normally

    Plugin Author Brave

    (@getbrave)

    @renaisonp Can you please try disabling all Inline Script from being cached?
    https://docs.wp-rocket.me/article/1104-excluding-inline-js-from-combine

    And to answer your questions,

    Your Other plugins worked becuase they are probably not using any kind of Ajax operation.

    And Most popup plugins don’t handle form submission, they just shows your own forms and content. They just work as containers. Since Brave also includes Form submission, analytics and all that, it needs to use Ajax Functions. Which needs to generate a secure key which expires within 12-24 hours for security purpose. This key is wordpress standard and used by all the plugins that uses Ajax. The generated keys should not be cached for long.

    This caching will also break any plugin that uses a Ajax function to submit/send data to server without page load, like Form submissions and such. You may not be using any plugin like that now, but when you do in future, know that it won’t work with your current cache settings.

    Thanks & Regards

    Plugin Author Brave

    (@getbrave)

    And the cache actually doesn’t clear every 6/12 hours automatically.

    Only when a page is accessed by a user, Cache plugin checks if the cache has expired or not, if it did, it fetches a fresh copy. So if the pages are not accessed by anyone, they are not refreshed.

    Hope that makes sense.
    Thanks & Regards

    Thread Starter renaisonp

    (@renaisonp)

    Pages must be preloaded to get a good score.
    It is therefore not possible to empty the cache every 6 hours, especially since we have 400 pages, the preload at such a rate is too heavy

    Plugin Author Brave

    (@getbrave)

    I think you missed by last reply. The pages won’t be preloaded every 6 hours. Each page will only be preloaded/refreshed when they are accessed.

    And did you try excluding the inline js files following this tutorial:
    https://docs.wp-rocket.me/article/1104-excluding-inline-js-from-combine

    Thread Starter renaisonp

    (@renaisonp)

    No, I do not understand.

    So contrary to what you said this morning, we don’t need to empty the cache every 6 hours for your plugin to work with the java function (which allows you to get a good score)?

    If so, what code should be put in “Exclude specific scripts” WP-Rocket?

    Plugin Author Brave

    (@getbrave)

    Yes this is an alternate method, which won’t require you to set the cache duration to 6 hours.

    As described in the documentation, you need to insert these in your “Exclude Inline Javascript” field:

    ;
    ,
    =
    (
    {
    

    https://docs.wp-rocket.me/article/1104-excluding-inline-js-from-combine

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Bad score on Googlespeed mobile’ is closed to new replies.