• Resolved tripledm

    (@tripledm)


    The scripts are loading on all pages and not just recipes so it is causing havoc on the sites (I have pro on multiple sites)

    I have used perfmatters plugin to disable the plugin on all but the recipes category but it still loads a script:

    id=’wpzoom-rating-stars-script-js-extra’

    Please update the plugin so that it only loads on posts/pages where the recipe block is added on not on all pages as even the ratings script is causing hundreds and thousands of errors in the error logs per day.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @tripledm

    We’re sorry about this inconveniences. We’ll add an option in settings page which will allow users to load scripts on the homepage, archive, search or only on single page. This option will be available in the upcoming days.

    Thread Starter tripledm

    (@tripledm)

    Hi Pedro, thank you for the response.

    It should literally ONLY load when a post does have the recipe card block in and not all pages.

    This also loads on ALL pages so it’s drowning the servers in ajax calls

    </script><script type=’text/javascript’ id=’wpzoom-rating-stars-script-js-extra’>
    /* <![CDATA[ */
    var wpzoomRatingStars = {“recipe_ID”:”xxxxx”,”user_ID”:”xxxxx”,”ajaxurl”:”https:\/\/www.xxxxx.com\/wp-admin\/admin-ajax.php”,”ajax_nonce”:”xxxxx”…

    On two busy sites with huge servers this is the killer on the error logs and they have problems uploading images as the ajax calls are placing massive loads on the server. It runs out of 1GB of WP/PHP memory to give you an idea as the calls builds up so searching the gallery for images and image uploads fail as ajax.php give 503 error as server overloaded. One of them on a 16 cpu mysql server with 18 cpu server, its huge and these ajax calls from above and plugin in general is killing it. if it only loads on posts with the recipe card block in so when blcok is triggered only then should it load the plugin scripts and css.

    Out of 50 categories on the one only 1 categore, recipes, runs the plugin so the other 100k+ posts also runt he scrips for no reason.

    I agree with @tripledm on this issue. While the plugin is great, adding the JavaScript, CSS files and the recipe schema to every single page/ post is unnecessary.

    Like @tripledm said … Maybe it can be added in the performance settings to turn JavaScript and CSS files on posts with recipe cards or a specific post type only.

    Plugin Author Pavel Ciorici

    (@ciorici)

    @thehorsebc Actually, we have already updated today the plugin and you can find the new option in the Performance tab: https://d.pr/i/gFQtxG

    @ciorici ok thanks I will try that and clear the cache. Thanks.

    Thread Starter tripledm

    (@tripledm)

    Hello, I do appreciate the new performance tab but as a website consists out of more than just recipes, it’ still loading on all single posts instead of only loading where it is used and needed.

    If you add an option to performance tab to say, INLCUDE recipes on posts in Category [select categories] then it can filter out and exclude all Recipe card info and include it only when and where it is used and needed.

    Option could be

    Only activated plug for: Recipes, Food

    As example the above would be selected categories then all the other posts on the websites will not have to run any recipe card scripts. It’s killing our servers on multiple sites all on different platforms.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘scripts load on all pages not just recipes’ is closed to new replies.