• tonyko33

    (@toniko33)


    Hello.

    I installed the OceanWP child theme as described in your documentation.

    When I activate the child theme, I notice a slowdown of my site when opening pages. With pagespeed insights, the loading time is so long that I get an error message. With pingdom tools, page loading increases by 10 seconds on average (server waiting time) when the child theme is activated.

    I carried out various tests. I’ve noticed that this loading time increases when Ocean Extra and the child theme are activated simultaneously.
    When I deactivate one or the other (Ocean Extra or the child theme), the loading time returns to normal. But when the 2 are activated at the same time, I have a server response problem with a loading time that’s too long.

    Any idea where the problem might be coming from? Should I copy some files or folders from the parent theme to the child theme folder? I don’t understand where the conflict is coming from.

    My site: lafabrikabrak.fr

    Thanks for your feedback

Viewing 5 replies - 1 through 5 (of 5 total)
  • Shahin

    (@skalanter)

    Hello @toniko33,

    Thank you for reaching out.

    It doesn’t seem to be an issue with the theme, and we haven’t seen this issue on our own sites or received any similar reports from other users. However, the issue appears to be caused by this error:
    https://ibb.co/6771VBVk Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR, which is preventing any of your site’s assets from loading.

    This type of error is usually related to a server-side issue, most likely with HTTP/2 or SSL settings. We recommend:
    Clear any server or CDN cache (e.g., Cloudflare, LiteSpeed, etc.).
    Temporarily disable HTTP/2 on your server to see if the issue goes away.
    Also, check your server’s SSL/TLS configuration with your hosting provider.
    Review any custom .htaccess or Nginx rules that might interfere with protocol handling.
    Or you can try installing “Really Simple SSL” and recheck the issue.

    Also, you can contact your hosting provider with this information and check this issue with them.

    Please recheck your issue and keep us posted.

    Hope it helps.
    Best Regards

    Thread Starter tonyko33

    (@toniko33)

    Hello and thank you for reply.

    I’ve seen the error you mention : https://ibb.co/6771VBVk But when I try to reproduce the error when viewing from Firefox or Microsoft Edge, I don’t get this kind of error displayed in the console

    I deactivated litespeed cache before performing these tests.
    I also set up a clean .htaccess file.
    I’ll test the rest of the points you mention and check with my host.

    Why does this problem only appear when the child theme is activated, whereas everything works perfectly when the parent theme (Ocean Wp) is activated?

    It can’t be files missing from my child theme compared to the parent theme or a misconfiguration of Ocean Extra with the child theme? How do these 3 elements fit together ?

    I’ll get back to you

    Thank you

    Shahin

    (@skalanter)

    Hello @toniko33,

    Thank you for the update.

    How can we reproduce this issue somewhere other than your website? Our child theme is completely empty, but you must have made some customizations that are causing this to happen:
    https://docs.oceanwp.org/article/90-sample-child-theme
    https://github.com/oceanwp/oceanwp-child-theme

    Since you may have many customizations in the child theme on your website, please do the steps below and recheck your issue and let us know the results.

    Troubleshooting child theme:
    1- Remove all customization on the child theme.
    2- add your customization one by one to the child theme.
    3- After adding each customization code, check your issue

    Note 1: in the staging website, if you have a cache plugin or server cache. You need to clear its cache contents or disable them.

    Note 2: Please get a full backup from your website before removing all customization.

    Note 3: If no issues were found with the child theme, try using a lighter theme like twenty twenty-three to double-check.

    Hope it helps,
    Best Regards

    Thread Starter tonyko33

    (@toniko33)

    Hello @skalanter

    I have followed all your advice explained in your previous messages. Except for those I had already applied for my tests.

    Unfortunately, this didn’t solve the problem of my site slowing down.

    I continued my tests on the child theme. I realized that the slowdown problem stems from an option in the child theme: Enable local Google fonts. When I apply this option to the child theme by selecting WOFF2, I observe a strong slowdown of the site. This was not the case with the parent theme. This format is recommended in your documentation:
    https://docs.oceanwp.org/article/896-customizer-typography

    By selecting TIFF, no impact observed and by selecting WOFF the impact is negligible. I’ve therefore chosen WOFF for the time being.

    I’ve also noticed that even when the “Enable local Google Fonts” option is selected, I still get 2 requests to google services: fonts.gstatic.com and fonts.googleapis.com. These requests didn’t appear when I was using the parent theme alone. But now appear with the 2 themes: parent and child; whichever one is selected.

    I specify that “Apply on Elementor” is activated on OceanWp Child theme. And that the option Load Google fonts locally is also activated in the Elementor settings.

    These are my last test elements.

    Best regards

    Hello @toniko33,

    Thank you for the update,
    Thanks for your review. Now that I know what the issue is, it’s easier to suggest a solution. Sometimes on certain servers, loading fonts from Google can significantly slow down the site. This is usually due to server-side issues and due to the additional HTTP requests and file downloads required.

    The best permanent solution to fix this problem is to host all fonts on your own server. Follow this article: https://docs.oceanwp.org/article/128-how-to-add-custom-fonts

    * Of course, your current workaround is fine too, but if you want to fully resolve this issue, host the fonts on your own server.

    Hope it helps,
    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘site slowdown with child theme’ is closed to new replies.