V1.0.7: How to improve the site performance when using jquery/ui

Created by Esther Nguyen, Modified on Wed, 17 Aug, 2022 at 10:16 AM by Esther Nguyen

ISSUE: 

I was getting an error in the console. "Fallback to JQueryUI Compat activated. Your store is missing a dependency for a jQueryUI widget. Identifying and addressing the dependency will drastically improve the performance of your site."


In more detail, the error shows...

// Import every plugin under the sun. Bad for performance,

// but prevents the store from breaking in situations

// where a dependency was missed during the migration from

// a monolith build of jQueryUI to a modular one 


Magento to load all the files unnecessarily which is why it warns in the console in dev tools. It affects the store’s performance by having to load files it doesn’t need


SOLUTION: 

It is true that when calling 'jquery/ui', it will load all the modules related. Therefore, we suggest a solution to call necessary modules in order to optimize the site performance 


To resolve the issue, please edit the file app/code/Bss/SimpleDetailGroupedProduct/view/frontend/web/js/view-image.js: 


If you need any further assistance, please feel free to contact us. We'd be happy to support you!

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