JS & CSS

Posted in: Newspaper
Post count: 225

Hello, I want to move js and css file footer, but how to do this can anyone help me step by step. Thanks!

Post count: 6535

Hi

Please check our documentation in page speed regard, at point 5 is explained this process: https://forum.tagdiv.com/how-to-make-the-site-faster/ Also you can check this topic which contains some useful informations regarding Speed Booster plugin usage: https://forum.tagdiv.com/topic/tagdiv-speed-booster-vs-web-2-0-directory-plugin/

Hope this help.
Thanks!

Post count: 225

I want to moving css/js resources at page bottom follow this: http://screencast.com/t/P7r6uHvvJl

//@todo test on newsmag
$this->move_style_to_footer_queue('woocommerce_frontend_styles'); //old woocommerce?
$this->move_style_to_footer_queue('woocommerce-layout');
$this->move_style_to_footer_queue('woocommerce-smallscreen');
$this->move_style_to_footer_queue('woocommerce-general');
$this->move_style_to_footer_queue('bp-legacy-css');

$this->move_style_to_footer_queue('font-awesome-four');

How to add css/js on footer- Please add my css/js file on footer. Here is my css/js file-

1. https://mydreamlives.com/wp-includes/js/jquery/jquery.js?ver=1.11.3
2. https://mydreamlives.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1
3. https://mydreamlives.com/wp-content/plugins/js_composer/assets/css/js_composer.css?ver=4.7.4
4. https://mydreamlives.com/wp-content/themes/Newspaper/style.css?ver=6.5.1
5. https://mydreamlives.com/wp-content/plugins/jetpack/css/jetpack.css?ver=3.8.0

Post count: 6535

Hi

First step in this process is to get the files ids so please follow this link: https://forum.tagdiv.com/how-to-make-the-site-faster/ At point 5 are explained the steps you need to take in this regard.
After you get the ids edit the td-speed-booster.php file (located in /your-wp-install/\wp-content\plugins\td-speed-booster) and add this lines of codes like here:
– for css files: http://screencast.com/t/GiBcnLERoj
– for js files: http://screencast.com/t/GAWqy0Bb6gE

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 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 sped booster usage: https://forum.tagdiv.com/topic/speed-booster-questions/

Hope this help.
Thanks!

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