WordPress.org

Forums

WP External Links (nofollow new window seo)
[resolved] Load CSS and JS in footer (2 posts)

  1. Cristescu Bogdan
    Member
    Posted 1 year ago #

    Hi! I need to know if its posible to have this feauture on plugin, to get css and js in the footer! For better loading and high SEO score I have to do this, to move all js and css in footer side.

    On my functions.php i put

    remove_action('wp_head', 'wp_print_scripts');
    remove_action('wp_head', 'wp_print_head_scripts', 9);
    remove_action('wp_head', 'wp_enqueue_scripts', 1);
    remove_action('wp_head', 'wp_enqueue_style', 1);
    add_action('wp_footer', 'wp_print_scripts', 5);
    add_action('wp_footer', 'wp_enqueue_scripts', 5);
    add_action('wp_footer', 'wp_print_head_scripts', 5);
    add_action('wp_footer', 'wp_enqueue_style', 5);

    All the scripts are down now, only wp-external-links css is still up in head area!

    thx!

    http://wordpress.org/plugins/wp-external-links/

  2. freelancephp
    Member
    Plugin Author

    Posted 1 year ago #

    Added an option in version 1.50 to load JS file in the footer (and CSS file has been removed).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP External Links (nofollow new window seo)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic