Hi,
I have installed tagdiv speed booster plugin and I wanted to move the render blocking js and css to footer.
I made following modification based on suggestions listed at https://forum.tagdiv.com/how-to-make-the-site-faster/” :
File: /wp-content/plugins/td-speed-booster/td-speed-booster.php
For JS files i have added following code in js_mover function:
$this->move_js_to_footer(‘addtoany’);
$this->move_js_to_footer(‘apsl-frontend-js’);
And for CSS files, added following in css_mover function:
$this->move_style_to_footer_queue(‘popup-maker-site’);
$this->move_style_to_footer_queue(‘contact-form-7’);
$this->move_style_to_footer_queue(‘cf7-style-responsive-style’);
$this->move_style_to_footer_queue(‘cf7-style-frontend-style’);
Screenshot for js changes at:
https://postimg.org/image/n0vrtuvo1/
And for css changes at:
https://postimg.org/image/r067tjcnd/
But, the scripts were not moved to footer as confirmed by view-source of page and by page insights.
We are using CDN to serve these scripts, is that causing the problem?
Here is the screenshot of our view-source showing these scripts:
https://postimg.org/image/kf2wvervj/
Regards
-
This topic was modified 9 years by
ashishmahajan1.
Hello ashishmahajan1,
First of all, please check your system status and check if your Speed Booster is active, as you can see here -> https://www.screencast.com/t/sGQtzFvO It is possible to be disabled if you are using some untested plugins with the theme. In this case, the Speed booster will be automatically disabled.
The Speed Booster is an optional plugin, and it works only with the tested plugins.If you use other plugins, it will be automatically disabled, and I suggest to check this first in System Status. However there is a workaround to make it also work with other plugins, you can read more here – https://forum.tagdiv.com/topic/speed-booster-not-compatible-with-vaultpress/
After you have ensured that this plugin works, you will have to check if this will move the style.css on the footer (check the source page and see how it works -enable it and check the results and then disable it and check the results). By default, this plugin will have to move to the footer the style.css and other render blocking. So, if it will work, it means that should have to work and for your instructions. Also, ensure that you have used the right ID’s in your want to see the good results.
Notice that we cannot provide optimization services and also, we can point you in the right direction through some suggestions. You should do it yourself all of these tasks. Otherwise, if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you!
Hope this helps!
Thanks for your understanding!