Tagged: enfold
-
AuthorPosts
-
October 12, 2019 at 11:15 pm #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
October 13, 2019 at 6:09 am #1147518Hey marcoabis81,
How are you measuring the load speed on mobile?
Best regards,
RikardOctober 13, 2019 at 11:13 am #1147555Yes 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
October 14, 2019 at 4:19 am #1147677Hi 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,
RikardOctober 14, 2019 at 10:57 am #1147795Hi 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.
MarcoOctober 15, 2019 at 6:09 am #1147956Hi 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,
RikardOctober 15, 2019 at 11:29 am #1148032Hi 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,
MarcoOctober 16, 2019 at 6:40 am #1148316Hi 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,
RikardJanuary 5, 2020 at 5:54 pm #1170478Hi 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,
MarcoJanuary 6, 2020 at 4:04 am #1170602Hi,
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,
IsmaelJanuary 6, 2020 at 1:18 pm #1170673Hi 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,
MarcoJanuary 7, 2020 at 4:02 am #1170888Hi,
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,
IsmaelJanuary 7, 2020 at 3:09 pm #1171071Hi 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,
MarcoJanuary 8, 2020 at 2:04 am #1171297Hi,
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,
IsmaelJanuary 8, 2020 at 12:57 pm #1171408Hi 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
January 10, 2020 at 10:35 pm #1172303Hi,
Try instal a plugin called ” PageSpeed.Ninja ” and tell me if this helps at all with the optimisation.
Best regards,
BasilisJanuary 10, 2020 at 11:05 pm #1172310Hi 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.
January 13, 2020 at 8:27 am #1172685Hi,
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,
IsmaelFebruary 22, 2020 at 1:18 pm #1186951Hi 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?
Can you help to understand why? This happens when I share on Whatsapp, on Facebook etc.
Thanks,
MarcoFebruary 26, 2020 at 4:50 am #1187942Hi,
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,
IsmaelFebruary 27, 2020 at 11:31 pm #1188681Hi 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,
MarcoMarch 2, 2020 at 4:07 am #1189299 -
AuthorPosts
- The topic ‘Site became saddenly slow on mobile’ is closed to new replies.