Title: Public Pro JS
Last modified: September 27, 2020

---

# Public Pro JS

 *  Resolved [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/)
 * I’m tuning my site speed, and I noticed some larger JS packages loading on the
   homepage Public Pro and Public Modern (I’m guessing this is for the recipe card).
   If I do not have recipe cards on the front page, should this be loaded globally?
 * Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13460696)
 * If “Only load Assets when needed” is enabled on the WP Recipe Maker > Settings
   > Performance page those JS files should only get loaded on pages that include
   recipes.
 * Could you check what that setting is set to?
 *  Thread Starter [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13460701)
 * I have it set to only load assets when needed. I do have post previews that where
   the post does have a recipe in them but not showing the card. Check it out at
   [https://ketokarma.com](https://ketokarma.com)
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13461939)
 * Looks like you’re displaying the recipe rating, times and net carbs on the homepage.
   It’s probably using the recipe shortcodes for that and once you use one of our
   shortcodes it indicates the plugin as being “in use” and loads those assets.
 *  Thread Starter [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13463590)
 * I am calling those directly from the WPRM_Recipe_Manager class `WPRM_Recipe_Manager::
   get_recipe_ids_from_post();` and `$recipe = WPRM_Recipe_Manager::get_recipe($
   recipeId);` but I can see how that may insert the tags in the DOM. I’ll disable
   those assets from running on the main page and test to ensure nothing is broken.
 *  Thread Starter [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13463605)
 * Also, thanks for the work you guys put in on this plugin and your attention to
   support!
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13463765)
 * You could indeed try using [wp_deregister_script](https://developer.wordpress.org/reference/functions/wp_deregister_script/)
   function to deregister the wprm-public and wprmp-public scripts on the homepage.
   That should not cause any issues here!
 * Do let me know if you have any other questions at all.
 *  Thread Starter [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13463836)
 * Sounds good, that is the route I’m taking for the homepage. Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Public Pro JS’ is closed to new replies.

 * ![](https://ps.w.org/wp-recipe-maker/assets/icon-256x256.png?rev=2967063)
 * [WP Recipe Maker](https://wordpress.org/plugins/wp-recipe-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recipe-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recipe-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recipe-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recipe-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recipe-maker/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/public-pro-js/#post-13463836)
 * Status: resolved