[Support request] WP-Rocket lazy load issue

Home Forums Support [Support request] WP-Rocket lazy load issue

Home Forums Support WP-Rocket lazy load issue

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #250861
    Karim

    Hi,

    I am having issues using WP-Rocket with GP. When I enable lazy load option it shows the following message on the header of page (it is visible on the page itself).

    (function(w,d){function a(){var b=d.createElement(“script”);b.async=!0;b.src=”http://mysite.com/wp-content/plugins/wp-rocket/inc/front/js/lazyload.1.0.5.min.js”;var a=d.getElementsByTagName(“script”)[0];a.parentNode.insertBefore(b,a)}w.attachEvent?w.attachEvent(“onload”,a):w.addEventListener(“load”,a,!1)})(window,document);

    Do you have any idea of why this is happening?

    Thanks

    #250885
    Tom
    Lead Developer
    Lead Developer

    If that code is displaying as text, it means there’s no <script> tags around it.

    What happens if you deactivate GeneratePress? Does the issue go away?

    If so, I’ll do some testing to see if it’s GeneratePress related.

    #251174
    Karim

    Hi Tom,

    I did some tests, its working fine with twenty sixteen theme but when I enable GP with Elementor (https://wordpress.org/plugins/elementor/) the code shows up on the page.

    Could you please check the compatibility with Elementor + GP + WP-Rocket?

    Look forward to hearing from you.

    Thanks

    #251186
    Tom
    Lead Developer
    Lead Developer

    What if you use Twenty Sixteen and Elementor?

    It seems it’s a paid plugin so it’s difficult for me to test – hopefully you don’t mind if I ask you to do a couple things just to make sure it’s an issue with GP 🙂

    #251224
    Karim

    No error shown when WP-Rocket, Elementor and Twenty Sixteen are activated.

    Thanks

    #251324
    Tom
    Lead Developer
    Lead Developer

    Any chance you can send me temporary admin login details?: https://generatepress.com/contact/

    #255378
    Thierry

    Hi,

    I have the same problem, there are a solution ? i wait a support from WP Rocket.

    #255386
    Thierry

    on setting of WP Rocket, i’ve turned off LazyLoad and it’s ok.

    #255456
    Tom
    Lead Developer
    Lead Developer

    I wasn’t able to test it unfortunately.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.