Viewing 1 replies (of 1 total)
  • I’m with Dave on this. No need to load it on all pages. One reason for me is because you are querying the database each time looking for the shortcode.

    Dave, I did this:

    //In my theme function file
    ///Removing store locater from the head.
    remove_action('wp_head', 'sl_head_scripts');
    if( is_page() ) {
    	add_action( 'wp_head' , 'sl_head_scripts' );
    }

    It now only loads on that specific page. I would not recommend anyone editing the plugin because when updates come out you will lose those.

    Thanks,
    Justin

Viewing 1 replies (of 1 total)
  • The topic ‘Avoiding load javascript where map is not present’ is closed to new replies.