Tagged: 

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1147460

    Hi guys,
    Not sure why.

    Today the website started behaving in a weird way.
    No changes on it in the last week. No new plugin, nothing at all.

    Also, I deactivated all the plugins and same result, very very very slow loading on the mobile while on a desktop is ok.

    I have deactivated the child theme and… well, it became extremely fast.

    Now, can you please assist me with this? Is it possible that the child theme is slowing down the website this much?

    Access details below.

    Marco

    #1147518

    Hey marcoabis81,

    How are you measuring the load speed on mobile?

    Best regards,
    Rikard

    #1147555

    Yes Rikard,
    I also tested it with Google https://developers.google.com/speed/pagespeed/insights/ and it gave me a much smaller score for mobile.

    I have installed Autoptimize, a plugin which allows me to clean JavaScript, CSS and HTML code joining them where necessary. The values on the Google website are much better but still did not fix the issue of slowness on mobile view. Please try it with Chrome on a mobile and see if it is slow.

    About this plugin Autoptimize, would you ever use any plugin to compress and clean the code? is it a good procedure? Or would you a different plugin, maybe more compatible with Enfold?

    thanks for your help and feedback.

    Marco

    #1147677

    Hi Marco,

    Thanks for the update. I see that you have a few functions in your functions.php file. What happens if you remove them one by one to see which one is slowing your site down?

    Also please note that the Google test you are referring to will very likely always give you a lower score for mobile, since they are testing your site in a simulated mobile network (as far as I know, it’s a simulated 3 or 4g network).

    Best regards,
    Rikard

    #1147795

    Hi Rikard,
    I tried to remove all the PHP and nothing changed.
    What I notice is that if remove the child theme, the website becomes super fast.

    Is it possible that the child theme is slowing all down?

    thanks.
    Marco

    #1147956

    Hi Marco,

    If you removed everything from the child theme, then it shouldn’t make any difference what so ever if you are running a child or parent theme.

    Best regards,
    Rikard

    #1148032

    Hi Rikard,
    I am sorry but I do not understand. The only thing I can remove from the child theme is just the css code. Anyway I removed it also on the enfold them and nothing changed.
    So, why do I see this extreme difference when I the child theme? Is there anything wrong on the child them with the new version of Enfold?

    Thanks,
    Marco

    #1148316

    Hi Marco,

    So you only removed CSS from the child theme? You have several functions in your functions.php file and if anything they are most likely to cause any slowing down of load times. Please try to remove everything from that file as well to see if you see any improvements. Also, you have a file in there called style.ctcbackup.css, I’m not sure what that is for?

    Best regards,
    Rikard

    #1170478

    Hi Rikard,
    I come back just now to this ticket after many optimizations on the site (lighter pictures – still the pics on the website are not many)

    Unfortunately I never resolved this issue. And I do not know what to do.

    I do really need your help guys in identifying what is causing the site to be this slow. I have deactivated all the plugins and removed the PHP code but not difference. And did tests with the host (siteground) as well.

    As soon as I activate the child theme everything becomes very very slow.

    Could you please help?

    thanks,
    Marco

    #1170602

    Hi,

    Thank you for the update.

    According to the page speed insight tool, you have to eliminate render-blocking resources such as non-critical stylesheets and scripts. You won’t be able to do this with the theme without manual modification, so the easiest solution is to enable file compression as suggested by the tool.

    There are a number of WordPress plugins that can help you inline critical assets or defer less important resources. Beware that optimizations provided by these plugins may break features of your theme or plugins, so you will likely need to make code changes.

    // https://wordpress.org/plugins/search/critical+css/
    // https://wordpress.org/plugins/search/defer+css+javascript/

    If you don’t want to install a plugin, go to the Enfold > Performance panel, then look for the File Compression settings.

    Best regards,
    Ismael

    #1170673

    Hi Ismael,
    Yes I was aware of this Google tool.

    The point is why is the code not optimized?

    What can happen in the code if I use a plugin? What do you suggest? plugin are useful or is it better not using them?

    Also, file compression. Is it better than using a plugin and what it does exactly?

    Thanks,
    Marco

    #1170888

    Hi,

    Thank you for following up.

    The compression will combine all stylesheets and scripts into a single merged file, which in most cases helps optimize loading speed. You can either use the default file compression option from the theme, or use another plugin if you prefer more options. They are basically the same. For more info, please check this article.

    // https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow

    Best regards,
    Ismael

    #1171071

    Hi Ismael,
    I see, so what your compression does is basically just joining files like all the other plugins do.

    I am reading the article you gave me and I see that you recommend to compress stylesheets and scripts. I had done it previously with a plugin and I could see an improve of the google speed test metrics. But I restore it to a previous backup because I actually do not know what compressing these files is actually doing.

    Is it safe? what if something breaks? how do I fix an eventual break?

    And why if it is recommended Enfold does not combine files automatically?

    Thanks,
    Marco

    #1171297

    Hi,

    Thank you for following up.

    Yes, it is safe. The compression is actually enabled automatically when you install the theme, but it’s not typical to merge css and js files by default, so you can always toggle it if you wish. Let us know if something breaks after enabling the compression so that we can check it.

    Best regards,
    Ismael

    #1171408

    Hi Ismael,
    thank you for your answer.

    Apparently the site is not breaking. The scores improved a lot, from 3 to 31 on mobile, from 16 to 70 on desktop.

    Still, I do not feel that the site has improved in speed. Images are almost all optimized, pages are not heavy.

    Do not know what else to do.

    Marco

    #1172303

    Hi,

    Try instal a plugin called ” PageSpeed.Ninja ” and tell me if this helps at all with the optimisation.

    Best regards,
    Basilis

    #1172310

    Hi Basilis,
    just a few points.

    Not much really.

    And I am not worried the score per se, I am worried because i feel the website very slow.

    #1172685

    Hi,

    Thank you for the update.

    The site loads fine our end. It’s not instantaneous but it doesn’t load that long either. Is it on a shared hosting? Have you tried installing a cache plugin or deploy the site in a content delivery network?

    // https://www.cloudflare.com/learning/cdn/what-is-a-cdn/

    Best regards,
    Ismael

    #1186951

    Hi Ismael, remember when we spoke about this? and I told you that the site is not breaking?
    It is actually not braking per se but I noticed something which is happening since I have compressed and joined the files.

    Now, whenever I am sharing a link, the preview image is not the preview image I set for example for socials or other pages.

    This is what I mean. 2 different pages, same spanish flag. Why?

    2020-02-22_1113

    2020-02-22_1118

    Can you help to understand why? This happens when I share on Whatsapp, on Facebook etc.

    Thanks,
    Marco

    #1187942

    Hi,

    It displays the flag because the pages don’t have featured images of their own, so the sharing app or feature looks for the first available image in the page. You have to edit the pages and set the featured image. If you have already done it, then you may have to use the following tool to re-scrape the page to refresh the open graph data.

    // https://developers.facebook.com/tools/debug/

    Installing SEO plugins like Yoast or any extension that adds open graph data to pages will help as well.

    // https://wordpress.org/plugins/open-graph-protocol-framework/

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    Best regards,
    Ismael

    #1188681

    Hi Ismael,
    It was related to this ticket as I have considered this issue related to the minifying of the HTML and CSS and as per our last conversation I had to let you know if I had any issues.
    I understand what you mean by default image but I got the same result of the spanish flag even when I shared pages with other images.

    I will test it again and let you know.

    Regards,
    Marco

    #1189299

    Hi,

    Thank you for the info. We’ll close this thread for now. If you require more assistance, please feel free to let us know in a new thread.

    Have a nice day.

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Site became saddenly slow on mobile’ is closed to new replies.