3D FlipBook - Flipbook not appearing on website - WP Rocket

i***o@pinned-media.com
2021-02-08
2021-02-09

Hi,

I am a paid user.

I am using the short codes in elementor but when I check my site the space for flipbook is blank.

Please see links to pages where flipbook are added but not appearing:

Replies

a***r@3dflipbook.net
2021-02-09
2021-02-09

Hi, do you use any optimization plugins or something that could change the scripts initialization order? there is an error in the console: Uncaught ReferenceError: FB3D_CLIENT_LOCALE is not defined, but if you enter FB3D_CLIENT_LOCALE - it is defined, so it seems that client.min.js is called earlier then FB3D_CLIENT_LOCALE was defined. But FB3D_CLIENT_LOCALE is localization for client.min.js so WordPress had to define it first.

i***o@pinned-media.com
2021-02-09
2021-02-09

No I don't. It's been the issue since purchasing the plugin last month.

I am launching a report today and it's not visible to my visitors

a***r@3dflipbook.net
2021-02-09
2021-02-09

Can you see it when you logged in?

i***o@pinned-media.com
2021-02-09
2021-02-09

One should also be appearing at the bottom of this page

https://unis-sahel.org/resilience/

i***o@pinned-media.com
2021-02-09
2021-02-09

Yes, they are only visible when logged in

i***o@pinned-media.com
2021-02-09
2021-02-09

I am not into code that's why I purchased the plugin. I am not familiar with editing scripts

a***r@3dflipbook.net
2021-02-09
2021-02-09

i see on your page: rocketlazyloadscript, so i guess you use wp rocket, i already heard about some problems with it: https://3dflipbook.net/question?id=998

a***r@3dflipbook.net
2021-02-09
2021-02-09
i***o@pinned-media.com
2021-02-09
2021-02-09

Ok, WP Rocket plugin has been disabled, and flipbooks are now appearing.

I will keep it like that for now. Thanks for assisting.

j***8@astarmax.com
2021-03-30
2021-03-31

The issue is caused by the fact 'font-awesome' is listed within the delay_js_scripts setting within WP Rocket. Because 'font-awesome.min.css' is mentioned within the localized script FB3D_CLIENT_LOCALE WP Rocket removes the content of the <script> tag. This causes this variable to be undefined.

So you could either disable WP Rocket's 'Delay JavaScript execution' completely or remove 'font-awesome' from the curated list. Beware when pressing 'Restore defaults' below the textarea because this will reintroduce the problem.

Maybe the developer of Flipbook could resort to a different method of loading font-awesome.min.css to prevent this from happening to other users.

a***r@3dflipbook.net
2021-03-31
2021-03-31

j***8@astarmax.com, FB3D_CLIENT_LOCALE is just JavaScript data. It contains a lot URLs, do you mean WP Rocket cares about each URL on the page and it does not care what it actually is? so you suggest to encode all JavaScript data using b64 or something?

a***r@3dflipbook.net
2021-04-01
2021-04-01

j***8@astarmax.com, yes that helps, if FB3D_CLIENT_LOCALE is encoded to hide it contents - the plugin works with wp rocket.

a***r@3dflipbook.net
2021-04-01
2021-04-01

The issue was fixed in 1.10.20

Log In to leave a comment