• Resolved glassraven

    (@glassraven)


    Hi,

    We’re using this plugin and all working well – we would just like to optimise the site loading times and trying to find out if there is a function to check if we’re on a directory page (category or listing) so we can limit loading of the following file:

    /wp-content/plugins/business-directory-categories/resources/categories-module.min.js

    Which currently loads on all pages.

    Ideally usage something like :

    if(!is_wpbdp()) {
    	wp_deregister_script( 'wpbdp-categories' );
    }

    As this is the format we are using to limit loading of other plugin scripts.

    Many thanks in advance.
    Sadie
    Ps- above is development version of site

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Limit JS loading on non directory pages’ is closed to new replies.