Can you explain Remove render blocking css/js

Posted in: Newsmag
Post count: 25

Hello, I’m looking at the tutorial: How to make the site faster – https://forum.tagdiv.com/how-to-make-the-site-faster/

5. Remove render blocking css/js – using the TagDiv SpeedBooster plugin (advanced users)

Everything seems to be good until I get to this part:

Edit the ../wordpress/wp-content/plugins/td-speed-booster/td-speed-booster.php file and target the css and js using the following code:

This is what I need to add to the td-speed-booster.php file

$this->move_style_to_footer(‘spu-public-css’);
$this->move_style_to_footer(‘boxes’);
$this->move_style_to_footer(‘google_font_open_sans’);
$this->move_style_to_footer(‘google_font_roboto_cond’);
$this->move_style_to_footer(‘js_composer_front’);
$this->move_style_to_footer(‘spup-public-css’);
$this->move_style_to_footer(‘td-theme’);
$this->move_style_to_footer(‘jetpack_css’);

$this->move_js_to_footer(‘devicepx’);
$this->move_js_to_footer(‘td-site-min’);
$this->move_js_to_footer(‘comment-reply’);
$this->move_js_to_footer(‘spup-public’);

But where exactly? The image is not clear where in that file it should be added.

Post count: 6535

Hi

We recently updated our documentation with new images for a better understanding where the code should be added. For more details about Speed Booster plugin please check this topic: https://forum.tagdiv.com/topic/speed-booster-incompatible/

Thanks!

Post count: 25

Hi Andrei

I have already removed the code that disables the plugin. I just need to know where to put the code in the td-speed-booster.php file.

Post count: 6535

Hi

You have to add your code in td-speed-booster.php file here: http://screencast.com/t/FX2C1WyF3
Note that this task involve some basic pah coding and also many tests to check if the plugins works fine with theirs resources moved in footer.
We can’t offer speed customization services at the moment so if you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.