Support » Plugin: ScrapeAZon » Conditionally load ScrapeAZon?

  • Resolved Soprano



    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:

    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,


Viewing 1 replies (of 1 total)
  • Plugin Author jhanbackjr


    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.


Viewing 1 replies (of 1 total)
  • The topic ‘Conditionally load ScrapeAZon?’ is closed to new replies.