• Resolved AHOiREKLAMA

    (@ahoireklama)


    I just installed Retainful 2.5.2 on my site that uses WP Rocket for JS/CSS minification and combination. When I view the cached version of the site, it is broken. Some images are missing, the layout is broken, some scripts are not being executed. I am seeing this error in the console:

    Invalid regular expression: missing /

    I’ve narrowed the issue down to Retainful plugin because it only occurs when the plugin is active. I’ve checked which JS assets the plugin is loading and when I add these 2 .js files as exceptions to WP Rocket, everything works well:

    js.retainful.com/woocommerce/v2/retainful.js
    js.retainful.com/woocommerce/v1/referral-wocommerce.js

    On my other site I am using the same version of WP Rocket + Retainful 2.5.1 and it works well.

    • This topic was modified 3 years, 4 months ago by AHOiREKLAMA.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author retainful

    (@retainful)

    Hey

    Thank you for reporting the issue. Really appreciate it.
    It appears that the WP Rocket is trying to minify the already minified JS.
    The following JS files were already minified:

    js.retainful.com/woocommerce/v2/retainful.js
    js.retainful.com/woocommerce/v1/referral-wocommerce.js

    That probably the reason why the issue occurs.
    Can you keep these two JS files excluded in the WP Rocket minification and compression ?

    We will run more checks and see if there is a way to overcome the double minification.

    Thanks
    Ram

    Plugin Author retainful

    (@retainful)

    Hey

    We have added compatibility for the WP Rocket in the latest release of the Retainful plugin 2.5.5.

    The issue occurs due to the double minification of WP Rocket for this JS: js.retainful.com/woocommerce/v1/referral-wocommerce.js

    This is the JS for the Referral widget. We are now loading the JS through a small JS snippet asynchronously.

    Please update to the latest version of the Retainful plugin (2.5.5). This will resolve the issue.

    Thanks
    Team Retainful

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible incompatibility with WP Rocket’ is closed to new replies.