This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 8:00 – 15:00 | 8:00 – 15:00 | 8:00 – 15:00 | 8:00 – 15:00 | 8:00 – 15:00 | - |
- | 16:00 – 17:00 | 16:00 – 17:00 | 16:00 – 17:00 | 16:00 – 17:00 | 16:00 – 17:00 | - |
Supporter timezone: Europe/Rome (GMT+02:00)
Tagged: Exception
This topic contains 7 replies, has 2 voices.
Last updated by Alejandro 1 year, 8 months ago.
Assisted by: Alejandro.
Author | Posts |
---|---|
October 29, 2023 at 7:43 am #14685299 | |
louisN-4 |
i have made a gtmetrix for this page: hidden link - hidden link got super results GRADE - A, and PERFORMANCE 98% now that page is in our main language HEBREW now i took another page of english which is one of our secondary languages: hidden link - hidden link and got very mediocre GRADE - D, and PERFORMANCE 58% what do you think is the reason? do you have different handling or cache to secondary language? how can that be improved? |
October 30, 2023 at 9:31 am #14689607 | |
Alejandro WPML Supporter since 02/2018
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
Hello, GTmetrix works based on the input it's given and if you give one site in one language and another site URL in another language then you'll likely see different results. The first url you sent was this one: hidden link which points to a specific Product which in EN is this one: hidden link In order to compare the results, you should be using that link i just sent. i ran a test with that link and here are the results: hidden link Very similar to the original language (remember that you will never have 2 exact results because the server resource usage will always be different and there are many factors to take into consideration). ---------------------- Interestingly the second URL is different. it's heavier because i seems it contains more images and the product page is heavier in general (bigger DOM, etc). I wonder if you have a caching mechanism in place and which one because if i access the site normally, the HE version actually loads slower, but it's not that different from the EN version (which loads a second and a half earlier), but it's not the same that i see on GTMETRIX, where sometimes i get a 404 error, sometimes i get a 7s load (mediocre, as you mentioned), sometimes i get a B score and sometimes an A. In Hebrew, i get more A and B than anything else but it seems it always loads the CACHED version so the loading time from the server is lower. We do not have anything that handles cache in one language or the other, the cache plugins take care of that and it's only possible configurations that could alter this (We do not really touch any of that) |
October 31, 2023 at 5:20 pm #14702765 | |
louisN-4 |
so the question is, are you doing anything different to the secondary languages, that maybe withholding litespeed cache from caching those pages? |
November 1, 2023 at 8:23 am #14705745 | |
Alejandro WPML Supporter since 02/2018
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
No, we're not. On the front-end they are nothing but a "new page" and the fact that with another product the stats are the same between languages tell me that maybe there's something different between product 1 (showing the same between languages) and product 2 ( showing differently between languages) and that might be what's creating this issue. If there's a plugin adding something only to this product and not the other, then maybe that's the clue here, maybe that forces a cache flush or something creating this issue. I'd try to test on a staging site, with all plugins disabled except WooCommerce and our WPML plugins. in this case, it's probable that the grade is almost to the top, but that's not what you'd be checking there but instead checking for DIFFERENCES between the languages. checking if in one language the test takes considerably longer to load than in the other, for example. This should be first tested WITHOUT any type of cache, because again, you're not going to be checking for an A grade but for big differences between the languages. You need to use a few products as samples (product 1 vs product 2, both in EN and in HE). If you don't notice any change, take a few mins and enable some of the WC-related plugins (not all of them at once but in small batches). wait a few minutes to let the server reset the resource usage and then try again and so on. At the same time, you can ask the hosting for the server logs of your installation so you can see if there are particular thing happening at the time of your testing when you notice the increase. |
November 1, 2023 at 9:44 am #14706197 | |
louisN-4 |
our staging is not the same as production can you please check page console responses to see if you see something different on each page? |
November 1, 2023 at 12:16 pm #14707301 | |
Alejandro WPML Supporter since 02/2018
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
I would kindly ask you to read my last answer again. i wasn't testing anything on a staging site (i don't even know the URL of a testing site). I also don't have access to neither of your sites and i'm just studying and testing on the front-end using the 2 products you used as references, which are both on the front-end. At the same time, my research focused on TTFB, DOMContentLoaded and other JS events and caching on some of the pages. -------------------- What i can tell you is this. when you are testing for performance, you need to find trends and what you found on the second product is currently not a trend. the reason why is because if you check the first product, you'll see it works normally in both languages (which means that the same cache plugins or systems work normally with WPML). That's why i suggested you tested a few things because there is very likely something happening on that product that has a bad grade that doesn't exist on other products and it's there where the clue might be. so far, if a problem is not happening on all the products but just some (i tested more than just the 2 and i only found a problem in the one you shared) then the problem is most likely something else. Regards. |
November 1, 2023 at 4:31 pm #14709191 | |
louisN-4 |
when you said the following: "Interestingly the second URL is different. it's heavier because i seems it contains more images and the product page is heavier in general (bigger DOM, etc)." in relation to - - hidden link DOM includes images and videos and giphy? |
November 2, 2023 at 9:20 am #14714271 | |
Alejandro WPML Supporter since 02/2018
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
The DOM contains everything, it's the entire site. what i meant there is that the second product is heavier as a website in relation with the first product. There were more images loaded and they were sometimes cached, in both languages, sometimes they weren't. Have you tried asking the litespeed cache authors about this? they are the ones that created the WPML integration and they are the ones that maintain it too so they can probably have better insights about how it works. Then you can let us know here in case you need more information. |
The topic ‘[Closed] superb gtmetrix vs average gtmetrix’ is closed to new replies.