• Resolved jsruok

    (@jsruok)


    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! ??

    https://www.ads-software.com/extend/plugins/quotes-collection/

Viewing 1 replies (of 1 total)
  • Thread Starter jsruok

    (@jsruok)

    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');
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Quotes Collection] Suggestion: Only load .js/Ajax files when needed’ is closed to new replies.