Plugin Contributor
iSaumya
(@isaumya)
Hi @xp3kt,
on your site, something is removing the plugin’s code: https://i.imgur.com/QX7O06l.png
Thread Starter
xp3kt
(@xp3kt)
Hi @isaumya, I changed the theme and disabled all the plugins, cleared the cache, and this error persists. I believe it has something to do either with the plugin or with the cloudflare dashboard.
-
This reply was modified 3 years ago by xp3kt.
Plugin Contributor
iSaumya
(@isaumya)
That is so wired. What I am seeing in the console is that the function to do preload is not defined. So, basically, the script is not getting added. I am unable to reproduce the issue on my end as it’s working perfectly here on all the sites.
Thread Starter
xp3kt
(@xp3kt)
I notice when I’m logged in with the url /?swcfpc=1 the console doesn’t show an error. The function doesn’t work anyway though. I’ll try to reset the plugin.
Plugin Contributor
iSaumya
(@isaumya)
Are you using any other caching plugin with this plugin that is handling the page cache? Something is removing the JS code for the non-loggedin users.
Thread Starter
xp3kt
(@xp3kt)
@isaumya Aside from the caching on cloudflare dashboard, no. The only thing that resembles a cashing plugin is autoptimize, but that can’t be it because I disabled all the plugins and changed themes.
Btw, when I’m logged in and visit my home page I’m not recognized as the admin (no admin bar) until I visit another page. Maybe that has to do something with the problem?
Plugin Contributor
iSaumya
(@isaumya)
Can you try disabling autoptimize for a moment and try? Maybe you have set up something in Autoptimize which might be causing the issue?
Thread Starter
xp3kt
(@xp3kt)
@isaumya disabled autoptimize, the problem persists