[v1.0.9] Fix the slowly loading site on the frontend when enabling the module

Created by Support Agent, Modified on Thu, 9 Apr at 11:15 PM by Support Agent

Issue: 

We have a product that has more than 100 options and when we access to the product in the backend and we give it to show the options we can see that it is very very slow in showing the options (more than 10 minutes), after finishing loading we can see that if we modify the name of an option it takes another 10 minutes to make any other modification, this would not be a big problem because it is very rare that we need to make modifications but we can see that at frontend level is also quite slow (30 seconds) until we can select an option.


I think that the slowness problems are due to the dependencies calculation.

Could you please check this case?


Solution:

The reason is that the dco-control.js component has a lot of unoptimized code, and triggers too many events, so the DOM processing part has a lot of downtimes.

To solve this problem, we have added optimized code and added file app/code/Bss/DependentCustomOption/view/frontend/web/js/dco-control.js 

Please apply this file on the site and then flush the cache. 


If you need any assistance, please don't hesitate to contact us.

We'd like to help.

Count on us! Here are some information about BSS Commerce if you might be interested:


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.

Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


Our Magento B2B Extension by BSS Commerce is a flagship, widely used global solution, providing an all-in-one system for pricing, account management, and efficient B2B workflows. 


>>> If you want to improve your visibility, install Magento SEO Extension by BSS Commerce

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article