Topic: Juicebox only visible for logged in WP users

Hello,

I have a Juicebox gallery , that only shows up for logged in WP users.
https://demarnerkiek.nl/wim2/

On my test site, it works fine...
https://www.demarnerkiek.nl/TESTSITE/wim2/

The page is now made with DIVI, but it also happened before with standard WP page.
The Juicebox settings are the same in both cases.

Where to look for a solution?
Are there known plugins which cause this?

Thanks,
Wim


greetings

Re: Juicebox only visible for logged in WP users

The problem seems to be that the <script> tag loading the Juicebox JavaScript file is being commented out (so the 'juicebox.js' file is not actually being loaded into your web page).
I expect there's probably an active plugin within your WordPress site which is doing this but I don't know what it might be.

WP-Juicebox adds the required JavaScript file to the web page via the 'wp_enqueue_scripts' function so check your plugins for any that prevent this function from being completed normally for users who are not logged in.

As I mentioned above, it looks like the 'wp_enqueue_scripts' function is not actually being skipped but that all scripts are being commented out instead.

I hope this points you in the right direction.

Re: Juicebox only visible for logged in WP users

Thanks for the answer..
Just deactivated plugin after plugin, and: WP Fastest Cache was the cause.
Any idea why ?


greetings

Re: Juicebox only visible for logged in WP users

Unfortunately, I'm not familiar with the WP Fastest Cache plugin and I don't know why it comments out enqueued scripts for logged out users.
Commenting out enqueued scripts will certainly make web pages load faster but at the expense of the functionality of those plugins whose JavaScript has been commented out.

I found another instance of the problem you reported here: https://wordpress.stackexchange.com/que … -logged-in
Maybe the notes in this thread will help.

Also, deselecting the 'Render Blocking Js' checkbox in the WP Fastest Cache plugin's settings may help.
Please see here for further details: https://www.wpfastestcache.com/premium/ … ocking-js/