This topic has 12 replies, 3 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp
I ran a speed test because my site is loading very slow. The speed test says the following:
721.3KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.
http://howtowriteabookthatsells.com/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/jquery-ui.min.js (205.3KiB)
http://howtowriteabookthatsells.com/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/ultimate.min.js (167.4KiB)
http://howtowriteabookthatsells.com/wp-includes/js/jquery/jquery.js (85.9KiB)
http://howtowriteabookthatsells.com/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/modal-all.min.js (73.7KiB)
https://maps.googleapis.com/maps/api/js?v=3.21&sensor=false (55.7KiB)
http://howtowriteabookthatsells.com/wp-content/themes/royal/js/head.js (53.7KiB)
http://howtowriteabookthatsells.com/wp-content/plugins/optimizePressPlugin/lib/js/op-jquery-base-all.min.js (30.7KiB)
http://howtowriteabookthatsells.com/wp-content/plugins/optimizeMember/optimizeMember-o.php?ws_plugin__optimizemember_js_w_globals=1&qcABC=1&ver=1.2.5.1-1.2.5.1-1601234928 (25.6KiB)
http://howtowriteabookthatsells.com/wp-content/themes/royal/js/modernizr.js (7.5KiB)
http://howtowriteabookthatsells.com/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/modernizr-custom.min.js (7.1KiB)
http://howtowriteabookthatsells.com/wp-includes/js/jquery/jquery-migrate.min.js (5.5KiB)
http://howtowriteabookthatsells.com/ (2.3KiB of inline JavaScript)
http://howtowriteabookthatsells.com/wp-admin/js/password-strength-meter.min.js (643B)
http://howtowriteabookthatsells.com/wp-includes/js/zxcvbn-async.min.js (287B)
Please advise how I would go about deferring parsing JavaScript to reduce blocking of page rendering. I am very much a novice and don’t understand what this means.
Hello writeonepub,
unfortunately we can not log into your admin panel as admin credentials you gave us are incorrect.
Please check them. In addition try to disable all not needed plugins.
Regards,
Stan Russell.
I don’t have any plug-ins that aren’t needed. I’ve updated the log-in credentials in the private area.
Thanks!
Hello,
You may try solution described here:
http://www.laplacef.com/2014/05/24/how-to-defer-parsing-javascript-in-wordpress/
Regards,
Eva Kemp.
I tried each of the solutions on the page you suggested and received an error message for each. Is this something you can do for me? I have no experience doing anything like this.
Hello,
The credentials to wp-admin panel are incorrect.
Also specify what folder via FTP your site files are located in.
Thank you.
Regards,
Eva Kemp.
The folder via FTP is /howtowriteabook
The rest of the information is in the private section.
Hello,
I’ve added the code in the file wp-content/themes/royal/functions.php:
if(!is_admin()) {
// Move all JS from header to footer
remove_action('wp_head', 'wp_print_scripts');
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);
}
Please clear browser cache and check the site.
Regards,
Eva Kemp.
I checked the site and when the page loads, it loads incorrectly. It first loads with what looks to be a sitemap, then two menus appear, and then finally it loads correctly. Also I just ran it through GTMetrix and the page load time has increased. Please advise.
Hello,
Try to disable your cache plugin and check pages loading.
Also the suggestions from these articles to increase site speed loading:
http://codex.wordpress.org/WordPress_Optimization
http://techtage.com/speeding-up-wordpress-sites/
http://www.sparringmind.com/speed-up-wordpress/
https://www.inmotionhosting.com/support/website/wordpress/heartbeat-ajax-php-usage#heartbeat-in-action
http://premium.wpmudev.org/blog/10-best-image-optimization-plugins-to-speed-up-your-wordpress-site/
http://www.elegantthemes.com/blog/tips-tricks/optimize-images-for-your-wordpress-website
Regards,
Eva Kemp.
I disabled the cache and it is still loading the same way. Please just restore the original functions.php. Thanks!
Hello,
I’ve removed the code in functions.php file.
Now it contains only default code.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up