Hi
I have installed speed booster plugin in my site and followed the instructions appeared here https://forum.tagdiv.com/how-to-make-the-site-faster/
Once i run the code..
function td_inspect_scripts() {
global $wp_scripts, $wp_styles;
echo 'registered scripts<br>';
foreach ($wp_scripts->queue as $handle) {
echo $handle . ' | ' . $wp_scripts->registered[$handle]->src . '<br>';
}
echo 'registered styles<br>';
foreach ($wp_styles->queue as $handle) {
echo $handle . ' | ' . $wp_styles->registered[$handle]->src . '<br>';
}
}
add_action( 'wp_print_scripts', 'td_inspect_scripts' );
Got the snippet as follows…
registered scripts
admin-bar | /wp-includes/js/admin-bar.min.js
contact-form-7 |
td-site | http://www.wpdiv.com/wp-content/themes/Newspaper/js/tagdiv_theme.js
comment-reply | /wp-includes/js/comment-reply.min.js
registered styles
admin-bar | /wp-includes/css/admin-bar.min.css
contact-form-7 |
boxes | http://www.wpdiv.com/wp-content/plugins/wordpress-seo/css/adminbar.min.css
parent-style | http://www.wpdiv.com/wp-content/themes/Newspaper/style.css
js_composer_front | http://www.wpdiv.com/wp-content/plugins/js_composer/assets/css/js_composer.css
td-theme | http://www.wpdiv.com/wp-content/themes/WPDIV/style.css
Based on above results i did added the strings in my speedbooster plugin as shown below based on your manual here https://forum.tagdiv.com/how-to-make-the-site-faster/
$this->move_style_to_footer_queue('parent-style');
$this->move_style_to_footer_queue('td-theme');
$this->move_style_to_footer_queue('js_composer_front');
$this->move_js_to_footer('td-site');
$this->move_js_to_footer('comment-reply');
But still i am getting the same issues…. http://prntscr.com/8u044l
Where i did wrong and will you please help me to get rid of the errors experiencing here.
-
This topic was modified 10 years by
wpdiv.
Hi
Note that the Speed Booster plugin disable itself when an incompatible plugin it’s installed. We added this measure to avoid conflicts with the plugins that won’t allow to move their css/js resources at page bottom. Check in System status if the plugin is active: http://screencast.com/t/slBN4kNf To keep it always activated please follow this link: http://screencast.com/t/RZLIOPUNdqh
Thanks for message!
@Andrai
Thanks for your update. based on system status its disabled due to the conflict of ACF plugin and it plays a major role in my site. http://prntscr.com/8uce54
To keep activated speed booster plugin you have shown second screenshot. What i have do with it to keep it always activate?
HI
Scripts are moved to footer, i can see that in source code, but Pagespeed Insights is still telling me to move them ..
any idea?
Thank you
Hello gregy1403,
I’m not sure what tool you used to move the render blocks to the footer.
Please try to use this guide: https://forum.tagdiv.com/how-to-make-the-site-faster/ and use the tagdiv speedbooster plugin to move render blocks to footer. Keep in mind that the speedbooster plugin has a compatibility function that makes it shut down if the correct plugins are not installed. You can deactivate this option and force speedbooster to run with all plugins by removing this code: http://screencast.com/t/RZLIOPUNdqh
You will have to manually move some of the render blocks.
Thank you!
Exactly with these instructions 🙂
Now i see plugin is not activated and cannot see it on plugins list .. strange
td-speedbooster.php file says
thank you
-
This reply was modified 10 years by
Bogdan B..
Hi
I’ve noticed that form your code is missing the plugin’s name is missing: http://screencast.com/t/VP4oRpA3 Try to add this comment on top of your td-speed-booster.php file, clear all caches and test again.
/*
Plugin Name: tagDiv Speed Booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper 6 and Newsmag 2.x themes - It moves the styles and all the scripts of the theme to the bottom when needed. It activates internal theme optimizations for better speed and it adds async js .
Author: tagDiv
Version: 4.2
Author URI: http://tagdiv.com
*/
Thanks!
– Added plugins name code
– activated Speedbooster
– cleared cache
– run Pagespeed Insights and still showing scripts and CSS to move to footer
– tested functions.php
registered scripts
wpdreams-photostack | http://www.cele.si/wp-content/plugins/ajax-search-pro/js/nomin/photostack.js
jquery | http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
wpdreams-ajaxsearchpro | http://www.cele.si/wp-content/plugins/ajax-search-pro/js/min-scoped/jquery.ajaxsearchpro-noui-isotope.min.js
archivesCW | http://www.cele.si/wp-content/plugins/archives-calendar-widget/admin/js/jquery.archivesCW.min.js
td-site-min | http://www.cele.si/wp-content/themes/Newsmag/js/tagdiv_theme.min.js
comment-reply | /wp-includes/js/comment-reply.min.js
registered styles
wpdreams-asp-basic |
wpdreams-ajaxsearchpro-instances |
archives-cal-classiclight |
google-fonts-style | http://fonts.googleapis.com/css?family=Open+Sans:400,700
js_composer_front |
td-theme |
td-theme-child |
as I can see, styles are no longer with links as scripts are .. progress 🙂 but not for Pagespeed
-
This reply was modified 10 years by
gregy1403.
Hello,
There is one more thing about the speedbooster plugin. It has a compatibility function. In it’s code you can see a list of plugins and if any other plugin is found that is not on the list, speedbooster will shut down.
Check in System status if the plugin is active: http://screencast.com/t/slBN4kNf To keep it always activated comment or delete the indicated lines from td-speed-booster.php: http://screencast.com/t/RZLIOPUNdqh You can check this topic for more information about speed booster usage: https://forum.tagdiv.com/topic/speed-booster-questions/ Please ensure you have removed on have commented the correct snippet of the code.
I hope this helps.
Thank you!