Site logo

Archived topic

WP-Rocket lazy load issue

8 replies · Started by Karim on December 2, 2016

Viewing posts 1–9 of 9

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

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.

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

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 :)

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

Thanks

Hi,

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

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

I wasn't able to test it unfortunately.

This archived topic is closed to new replies.