> Scripts To Footer wordpress plugin resources analysis

Scripts To Footer wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Scripts To Footer
Version 0.5
Author Joshua David Nelson
Rating 92
Last updated 2014-09-19 11:59:00
Downloads
23247
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Scripts To Footer plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Scripts To Footer plugin added 0 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.

Scripts To Footer plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Scripts To Footer plugin ads no tables to your Wordpress blog database.

This small plugin moves scripts to the footer to help speed up page load times, while keeping stylesheets in the header. Note that this only works if you have plugins and a theme that utilizes wp_enqueue_scripts correctly.

Now includes an option to disable the plugin on a specific page or post.

Custom Post Type Support

If you're comfortable with code you can use the scripts_to_footer_post_types filter to change the post types this applies to (it only applies to pages and posts by default). For example, if you have a custom post type called "project" you could add support for this metabox via the post type filter like this:

function stf_add_cpt_support( $post_types ) {
    $post_types[] = 'project';
    
    return $post_types;
}
add_filter( 'scripts_to_footer_post_types', 'stf_add_cpt_support' );

Excluding Pages/Posts Via Filter

As of version 0.5 you can either use the checkbox option to disable the plugin's action on a specific page/post, or you can utilize a filter. The filter also passes the post/page id, which might be useful for more advanced development. For example:

function stf_exclude_my_page( $exclude_page, $post_id ) {
    if( is_front_page() ) {
        $exclude_page = 'on'; // this turns on the "exclude" option
    }
    return $exclude_page;
}
add_filter( 'scripts_to_footer_exclude_page', 'stf_exclude_my_page' );

View on GitHub

View this plugin on GitHub

Screenshots

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Kotetsu screenshot

Kotetsu

by: inc2734

2724
0%
Earth Pro screenshot

Earth Pro

by: vainfotech

6479
0%