An easily solution to remedy that is to move all the .js files in the footer so they will start to load after all the graphical elements of the website have been loaded. In order to do this, open your theme’s functions.php file an place the following code at the bottom.
remove_action('wp_head', 'wp_print_head_scripts', 9);
remove_action('wp_head', 'wp_enqueue_scripts', 1);
add_action('wp_footer', 'wp_print_scripts', 5);
add_action('wp_footer', 'wp_enqueue_scripts', 5);
add_action('wp_footer', 'wp_print_head_scripts', 5);
I have Sahifa wp theme, but no one trick with removing js and css to footer doesn’t workink
Tried it but the code messed up with whole Custom CSS,some other option?
An alternative to the above method, which moves all the .js files to the footer is to do it manually and choose which ones you want instead.
very nice publish, i certainly love this website, keep on it
You know I love your blog!!!