Site logo

Archived topic

Site speed affected by GP

5 replies · Started by manaadiar on November 20, 2018

Viewing posts 1–6 of 6

Hi there, I am a GP premium customer.. After I installed GP, I am noticing very slow speeds on my articles (blog page).. Home page is fine, but when I test https://shippingandfreightresource.com/articles on GT Metrix I can see a big issue with Javascript relating to GP.. Please view Defer parsing of JavaScript and Inline small JavaScript here https://gtmetrix.com/reports/shippingandfreightresource.com/g9ASGt4c..

Can you pls assist with this.. I did try disabling the GP plugin and the speed was fine..

Below is the errors in Defer Parsing of JavasScript.. While not all is GP there are a lot of GP issues..

178.0KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

https://c0.wp.com/c/4.9.8/wp-includes/js/jquery/jquery.js (87.0KiB)
https://shippingandfreightresource.com/wp-content/plugins/highlight-and-share/js/sweetalert2.all.min.js?ver=7.28.4 (28.9KiB)
https://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201847 (9.4KiB)
https://shippingandfreightresource.com/wp-content/plugins/highlight-and-share/js/highlight-and-share.js?ver=2.4.6 (8.6KiB)
https://c0.wp.com/c/4.9.8/wp-includes/js/jquery/jquery-migrate.min.js (7.7KiB)
https://c0.wp.com/p/jetpack/6.7/_inc/build/lazy-images/js/lazy-images.min.js (7.0KiB)
https://shippingandfreightresource.com/ (6.1KiB of inline JavaScript)
https://shippingandfreightresource.com/wp-content/plugins/gp-premium/menu-plus/functions/js/sticky.min.js?ver=1.7.3 (5.8KiB)
https://shippingandfreightresource.com/wp-content/plugins/gp-premium/general/js/smooth-scroll.min.js?ver=1.7.3 (5.6KiB)
https://shippingandfreightresource.com/wp-content/themes/generatepress/js/menu.min.js?ver=2.2 (3.0KiB)
https://shippingandfreightresource.com/wp-content/plugins/wp-polls/polls-js.js?ver=2.73.8 (2.5KiB)
https://shippingandfreightresource.com/wp-content/themes/generatepress/js/a11y.min.js?ver=2.2 (1.6KiB)
https://shippingandfreightresource.com/wp-content/themes/generatepress/js/navigation-search.min.js?ver=2.2 (1.4KiB)
https://c0.wp.com/c/4.9.8/wp-includes/js/wp-embed.min.js (1.2KiB)
https://secure.care5alea.com/js/90108.js (1019B)
https://shippingandfreightresource.com/wp-content/themes/generatepress/js/back-to-top.min.js?ver=2.2 (568B)
https://c0.wp.com/p/jetpack/6.7/_inc/build/photon/photon.min.js (395B)
https://shippingandfreightresource.com/wp-content/plugins/adrotate-pro/library/jquery.adrotate.clicktracker.js (251B)

Hi there,

are you using autoptimize or a another cache/opimization plugin? these all have the option to defer parsing of javascript within their optimization settings.

Hi David, yes I have WP Optimize, Hummingbird, but no change.. Is there nothing that GP does to avoid these problems as part of the package..??

I am not aware of that plugin, but check within their advanced settings I would expect there to be something like Optimize JS which should include deferring javascript and combine scripts.

This the method we currently prescribe using Autoptimize:

https://generatepress.com/fastest-wordpress-theme/

GP does everything it can to reduce loading times, as you can see by the very small JS scripts it uses, minimizing the number of requests and dynamically caching the Customizer CSS. Anything more than this is outside of our control, as GP doesn't know what plugins, custom code or server settings a user may have. Hence the need to use other tools.

Hi David I checked with Autoptimize as well, but still the same.. Any suggestions..??

Autoptimize can combine those CSS and JS files into one file (each), which will reduce the number of HTTP requests. Your existing plugins should have the same option to combine the files as well.

The main problem as far as I can see looks to be your server. For example, a11y.js is only 777 bytes, yet it's taking 159ms to load.

Our speed test loads that file, and the entire site loads in under 300ms: http://speedtest.generatepress.com

So what I would do is:

1. Combine your resources using the plugin of your choice
2. Check to make sure your hosting is running as fast as possible (using PHP 7 etc..)

This archived topic is closed to new replies.