Ask tagDiv Speed Booster not to move style.css to bottom

Posted in: Newspaper
Post count: 341

The tagDiv Speed Booster works great but it also moves the style.css and td-bootstrap.css to footer and this delays render of the page. I tried removing $this->move_style_to_footer('td-theme'); from the plugin but then it completely removes style.css file.

I want the style.css file to be in the top not bottom, any clues? 🙂

Post count: 6600

Hi,

Comment this lines in td-speed-booster.php file: http://screencast.com/t/stCPIkRzbh

Thanks

Post count: 341

I did the same but as soon as I do it my site shows blank. The css files are loaded but still nothing shows, I can see the source of my site and also the google ads but nothing else. 🙁

Post count: 6600

Hi,

Please replace the content of speed booster plugins with this one: http://pastebin.com/v48GNJC7 like this: http://screencast.com/t/RjHt8XEnuy0 and check again.
Also make sure you make a back-up of your original file before changing it.
Should work, I have tested this.

Thanks

Post count: 341

I replaced the file with your’s and this is what I get.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'td_speed_booster' does not have a method 'wp_head_hook' in /home/shashank/public_html/wp-includes/plugin.php on line 505

Post count: 341

and when I use the earlier file and comment out this line as // $this->move_style_to_footer('td-theme'); , I don’t see the style.css file enqueued in the page html source.

Post count: 6600

Hi,

That is because of this style which gets applied to the body tag: http://screencast.com/t/3EvmvbQ4i
You need to make sure you comment that line: http://screencast.com/t/Zp2OBoTO
And also: http://screencast.com/t/nEPX7oKTAq
This should do it. I have tested this and didn’t get any error, please make sure you haven’t made any other changes that may cause this and try again.

Thanks

Post count: 341

I did as you told but the style.css is not in the page source and this is what I get.

If you doubt that I’m not doing it correctly, then this is my file and I’ve highlighted all the changes I’ve made.
http://www.speedyshare.com/eueXY/Shashank.docx (choose slow download to see the file)

Post count: 6600

Hi,

I tested this using your speed booster plugin code and had the same issue. This code you have added causes the issue: http://screencast.com/t/bPjCzQob
Remove it and will work fine, the style.css file won’t be move to the footer when speed booster plugin is active.

Thanks

Post count: 341

Okay, then how will I remove “?ver=4.4 ” from style.css file? :/

Post count: 6600

Hi,

Edit the td-speed-booster.php file and remove this: http://screencast.com/t/TInrBygn80

Thanks

Post count: 341

I did the same thing, see my td-speed-booster.php file. Try that you’ll also get issues. Would you like to try yourself on my site with administrator account?

Post count: 6600

Hi,

Please note that this version: http://screencast.com/t/oU8j9Zmqu This can’t be removed as it’s added by WordPress to avoid caching on updates.
For the speed booster plugin please make sure your do this right to not move the style css to the bottom edit the td-speed-booster.php file and make sure you just this changes: http://screencast.com/t/JKJmxFgV
I have double tested this and should do this right this time. If still this dose not work please make sure you remove and install again the speed booster plugin and then do this changes again.

Thanks

Post count: 341

Yep commenting both style.css and td-bootstrap simultaneously worked. 🙂
Thanks :*

Post count: 6600

Glad it works!
Thanks for the message!

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