Site logo

Archived topic

Homepage loading slowly

15 replies · Started by nanche on January 16, 2016

Viewing posts 1–15 of 16

Hello,
My homepage is loading extremely slowly, I don't think it's a server issue, as the articles load quickly and according to google pagespeed the server response time should be good. I only have this problem on the homepage and category pages, maybe I did something wrong in the customize settings? headphonesguru.com

Hi there,

It could be a plugin - can you try #1 on this page?: https://generatepress.com/knowledgebase/debugging/

I see a mixed content error happening which typically means you're requesting the page as https but some elements are being loaded as http. Make sure your URLs in "Settings > General" are both set to have https.

I also see a javascript error happening in the WordFence plugin.

Hey,
I tried disabling all plugins, but it didn't seem to help. I tried debugging mode and in my dashboard it said there was an error in functions.php. I have added some custom code there which could be why. I added this at the end, which i use to display dates:

function displaydate(){
return date('(F Y)');
}

function displaydate1(){
return date('(M. Y)');
}

add_shortcode('date', 'displaydate');
add_shortcode('date1', 'displaydate1');
add_filter( 'the_title', 'do_shortcode' );
add_filter( 'aioseop_title', 'do_shortcode' );

Btw, the articles still load very quick, only the homepage and category pages that display latest posts have loading issues.

When you remove the code you added does it make a difference?

Are you using the latest version of GP Premium (1.2.79) and the theme (1.3.23)?

Yes, I am using the newest versions. This is the message I get in my dashboard:

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/headphonesguruc8/public_html/wp-includes/functions.php on line 3624

That's most likely being caused by a plugin that isn't compatible with 4.4.

It looks like the images are the things taking forever to load, which doesn't make much sense since there's only two of them.

Not sure if you just did something but the site is loading super fast for me now?

I have disabled the images on the front page and it's still very slow.

Hey, I'm getting the problem again. I've done some testing and I'm pretty sure it's something within the theme. When I disable GP premium the site gets extremely fast, and I even tried generatepress on one of my other sites with the exact same settings as headphonesgurus and it got very slow as well. I don't

I am clearing WP cache before i speed test btw.
http://tools.pingdom.com/fpt/#!/b014Qg/https://www.headphonesguru.com
http://tools.pingdom.com/fpt/#!/bCDQln/https://www.headphonesguru.com/best-earbuds

There seems to be some kind of problem when loading "Latest Posts", and it only happens when I activate GP Premium.

Ok, let's try this.

1. Flush the cache and deactivate your caching plugin
2. Go to "Appearance > GeneratePress" and deactivate the GP Premium add-ons one by one until the issue stops

This will tell us which add-on your server is having troubles with.

My guess is it's the Blog add-on, possibly because of the image resizer. My guess is it's server related since there's thousands of other websites using it with no issues (for example: http://www.staceysrecipes.com - way more images as well).

However, if we can pinpoint it, we'll be able to find a solution.

Let me know :)

Flushed cache, deactivated cache and then disabled blog. Seems to have fixed the speed issue.

Getting there.

Now activate Blog and add this PHP: https://gist.github.com/generatepress/fcbb9065a958e6e0f9ef

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

If that works, it means your server doesn't like the automatic image resizing.

Not the end of the world, it just means you'll have to regenerate your thumbnails after changing the post image sizes in the Customizer: https://wordpress.org/plugins/regenerate-thumbnails/

Let me know :)

Worked perfectly :)

I havn't installed Regenerate Thumbnails plugin. It seems to work without it, should i install it?

This archived topic is closed to new replies.