Forums

Quotes Collection
[resolved] Suggestion: Only load .js/Ajax files when needed (2 posts)

  1. jsruok
    Member
    Posted 1 year ago #

    Plugin seems to include a javascript file always. Loading extra files makes the site load (a bit) slower.

    I would suggest adding all that Ajax stuff *if and only if* widget has Ajax enabled.

    I'm not sure if that is possible but it just would be awesome because then I wouldn't have to trouble myself with changing plugin's source code after each update.

    Thanks! :-)

    http://wordpress.org/extend/plugins/quotes-collection/

  2. jsruok
    Member
    Posted 1 year ago #

    Resolved:
    remove unwanted actions in theme's functions.php:

    // removes Quotes Collection plugin's CSS reference
    remove_action('wp_head', 'quotescollection_css_head');
    
    // removes Quotes Collection plugin's .js reference
    remove_action('init', 'quotescollection_scripts');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic