General question about snippets & performance
-
Hallo,
I made several changes to Woocommerce single product page and packed them in a custom plugin. This plugin only contains code snippets, it does not enqueue any styles/js files.As I need this plugin only to be active on Single Product page, I wanted to use a MU-Plugin to enable it only on that specific page.
But I am now wondering if this method would have any advantages (especially concerning performace) compared to if I’d just add my snippets to code snippets plugin, each wrapped in an if-statement (if (is_product()…).Which method would you recommend and why?
Thank you and kind regards
The topic ‘General question about snippets & performance’ is closed to new replies.