Title: Conditionally load ScrapeAZon?
Last modified: April 19, 2017

---

# Conditionally load ScrapeAZon?

 *  Resolved [Soprano](https://wordpress.org/support/users/soprano/)
 * (@soprano)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/conditionally-load-scrapeazon/)
 * 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/](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 1 replies (of 1 total)

 *  Plugin Author [jhanbackjr](https://wordpress.org/support/users/jhanbackjr/)
 * (@jhanbackjr)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/conditionally-load-scrapeazon/#post-9044389)
 * Hi, Matt.
 * ScrapeAZon is actually already configured to load scripts and styles only when
   the shortcode is present. It should work as long as you’re using a version of
   WordPress greater than 3.6 and are not using the do_shortcode function. The function
   that performs this task is szRequireStyles through WordPress’s wp_enqueue_scripts
   function.
 * If you are seeing ScrapeAZon’s scripts or styles load on pages other than ones
   where you use the shortcode or the home page, let me know. I’d like to help you
   prevent that as well.
 * Thanks for using ScrapeAZon and let me know if I can be of further assistance.
 * James

Viewing 1 replies (of 1 total)

The topic ‘Conditionally load ScrapeAZon?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scrapeazon_6694ff.svg)
 * [ScrapeAZon](https://wordpress.org/plugins/scrapeazon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scrapeazon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scrapeazon/)
 * [Active Topics](https://wordpress.org/support/plugin/scrapeazon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scrapeazon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scrapeazon/reviews/)

## Tags

 * [assets](https://wordpress.org/support/topic-tag/assets/)
 * [conditional](https://wordpress.org/support/topic-tag/conditional/)

 * 1 reply
 * 2 participants
 * Last reply from: [jhanbackjr](https://wordpress.org/support/users/jhanbackjr/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/conditionally-load-scrapeazon/#post-9044389)
 * Status: resolved