Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 82367

Conditionally load ScrapeAZon?

$
0
0

Replies: 0

Hey,

I’m interested in using ScrapeAZon alongside my EDD store. I’m concerned with site performance, so I usually load all my assets conditionally according to the best practices.

Seeing as I only plan to use the plugin on my edd custom post type pages there’s no point in loading the assets on all my other 1000+ posts/pages (similar to what cf7 offers: https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/)

Is there a way I can hook the assets to dequeu and only enqueu on the pages that use the plugin? If you give me the hooks for the css/js it should be more than enough.

Warm Regards,

Matt


Viewing all articles
Browse latest Browse all 82367

Trending Articles