• Resolved catmaniax

    (@catmaniax)


    Hello.

    I only use Social Commenting and I’d like to ask you if you can please make the plugin stop loading its JS & CSS files in unnecessary pages like the homepage, and only run inside posts, where it is needed.

    Here are all the files running in the homepage:

    /wp-content/plugins/super-socializer/js/front/social_login/general.js
    /wp-content/plugins/super-socializer/js/front/facebook/sdk.js
    /wp-content/plugins/super-socializer/css/front.css

    Please let me know.
    Thanks!

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author Heateor Support

    (@heateor)

    What will the premium version offer and around when will it be released?

    We are not sure about the price yet. It will be released within next 2 months.

    Thread Starter catmaniax

    (@catmaniax)

    I see. I was just wondering what other additional features the pro version may have.

    Plugin Author Heateor Support

    (@heateor)

    Feature list has not been finalized yet but some of the key features would be:
    1. PHP OAuth based social login instead of Javascript based authentication (this would eliminate the requirement of Javascript files for social login)
    2. Class based code structure
    3. Social avatars will be saved at your website server, instead of rendering these every time sending request to the social networks’ servers.

    Thread Starter catmaniax

    (@catmaniax)

    That’s nice, thanks for letting me know.

    However I think having the speed-up feature on the free version and not load the plugin’s files everywhere, would be best for everyone.

    Plugin Author Heateor Support

    (@heateor)

    @catmaniax
    Okay. We will consider this.

    Thread Starter catmaniax

    (@catmaniax)

    Thank you.

    Adding the below code to functions.php loads the scripts and styles only on the relevant pages.
    I use the plugin only for social login.

        if (!is_admin() && !is_page('login') && !is_page('register') && !is_page('lost-password') && !is_page('reset-password')) {
          wp_dequeue_script( 'the_champ_fb_sdk' ); 
          wp_deregister_script( 'the_champ_fb_sdk' ); 
          wp_dequeue_script( 'the_champ_combined_script' ); 
          wp_deregister_script( 'the_champ_combined_script' ); 
          wp_dequeue_script( 'thickbox' ); 
          wp_deregister_script( 'thickbox' ); 
          wp_dequeue_style('the_champ_frontend_css');
          wp_deregister_style('the_champ_frontend_css');
       }
Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Do not load plugin’s files in pages!’ is closed to new replies.