• Resolved catmaniax



    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:


    Please let me know.

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


    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.

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

    Plugin Contributor Heateor Support


    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.

    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 Contributor Heateor Support


    Okay. We will consider this.

    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' ); 
Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Do not load plugin’s files in pages!’ is closed to new replies.