-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento 2 Luma top menu loads very slow #38724
Comments
Hi @cptX. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @cptX , Thanks for reporting and collaboration. Verified the issue in magento 2.4-develop instance and the issue is not reproducible. Steps to reproduce:- 1.Add many images, videos and other stuff in the front page Its not significantly noticeable, magento with without videos. images, banner, slider has the same loading time as magento without anything. In the video 1st i am showing loading of magento without anything, in the 2nd it has many thing on home screen Screen.Recording.2024-05-17.at.8.mp4 |
Probably you didn't get my point. The issue is that the top menu is javascript based and is slow loading after the whole page is finished. In your video you should focus on the top menu and wait to see when the drop down arrows will be visible and available in the top menu. Then you will realize that they are slow, the menus not the whole page. Your video is just scrolling down so it doesn't show my point. I'll send you a video in the next days from a slow computer to show you the issue. |
Hi @cptX , Thanks for reporting and collaboration. Can you send the video evidence that you have mentioned above ,to speed up the process in this issue. Thanks, |
Hi, I'm uploading here the video that shows that the top menu is ready only after several seconds and after the full load of the page, leaving the menus unusable during this time, in a slow machine or in a slow connection. The video you see is through a 100Mbps connection but on a slow dual core machine. It's clearly visible that several seconds are required in every page load until the top menu is usable... You can test yourself here: https://electrons.gr magento_slow_menus_01-2024-05-30_10.12.13.mp4 |
Hi @cptX , I have checked your video attached , but it is not related to magento core.However i have checked the link you have shared and i didn't find any slowness although i am using 60 mbps internet. Can you let us know the detailed steps to reproduce and any other setting required to confirm this issue.Also let us know if this issue is about core magento or websites created using magento. Thanks, |
@magento give me 2.4-develop instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://f5a9c356f02266b44fcd9eb2e069ae95.instances-prod.magento-community.engineering |
Hi @cptX , I have checked with magento test instance and the issue is not reproducible.It is not taking that much time to load Attaching the video for your reference. Screen.Recording.2024-06-03.at.8.mp4 |
Hi @engcom-Delta, I don't consider the current implementation acceptable... |
Hi @cptX , We have again checked on magento instance by setting the network to slow 3G. After flushing the cache on the magento instance , when we have refreshed the local instance , the top menu's are only available only after full load of the instance. Attaching the screen recording for your reference.Please confirm if you are talking about this issue. Screen.Recording.2024-06-04.at.1.mp4 |
Hi @engcom-Delta, in my last post I underlined that the problem is mainly CPU dependant and not so network speed dependant. You are testing with slower network speed and fast processor and not with CPU throttling. |
Just for your information I just discovered another report referring to the same issue here https://magento.stackexchange.com/questions/347524/magento-2-mobile-navigation-menu-respond-too-late Issue is that the Top Menu js files are loaded very late in page load. They should be loaded closer to the start. This also can affect Google Web Vitals... |
Preconditions and environment
2.4.6
Steps to reproduce
Load the home page in Luma theme from a pc. You will notice that the menu is ready for clicking only after everything is loaded in the page. If you have many images or other stuff in the front page and in a very slow connection this is significantly noticeable and gives the feeling of a very unresponsive and slow site.
Expected result
Menu should be ready immediately after the first page draw.
Actual result
Top Menu loads very slowly because it is javascript dependent and its javascript is probably loaded at the end of the page.
Additional information
I don't understand why the top menu is javascript dependent in Luma Theme? It is so simple that it should be pure html and php, we don't need js at all here.
Also, the corresponding js probably loads after everything else in the page making the menu very unresponsive and slow. Any suggestions to make it pure html?
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: