[Resolved] Homepage loading slowly

Home Forums Support [Resolved] Homepage loading slowly

Home Forums Support Homepage loading slowly

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #166078
    nanche

    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

    #166083
    Tom
    Lead Developer
    Lead Developer

    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.

    #166085
    nanche

    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' );
    #166086
    nanche

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

    #166089
    Tom
    Lead Developer
    Lead Developer

    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)?

    #166094
    nanche

    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

    #166097
    Tom
    Lead Developer
    Lead Developer

    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?

    #166105
    nanche

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

    #166106
    Tom
    Lead Developer
    Lead Developer

    The site is loading very fast for me?

    Pingdom says so as well: http://tools.pingdom.com/fpt/#!/2i9Y3/https://www.headphonesguru.com/

    I tried in multiple browsers and all seem to be loading very quickly.

    #166934
    nanche

    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.

    #167013
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #167028
    nanche

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

    #167031
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #167033
    nanche

    Worked perfectly πŸ™‚

    #167037
    nanche

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

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.