MultiSafepay / Magento2Msp

MultiSafepay plugin for Magento 2 (Deprecated) see: https://github.com/MultiSafepay/magento2
Open Software License 3.0
29 stars 25 forks source link

Checkout gives jquery/ui warning #116

Closed DerFrenk closed 4 years ago

DerFrenk commented 4 years ago

Hi,

We've recently upgraded our Magento2 installation from 2.3.1 to 2.3.4. When I now open the checkout and go to the payment step, the following message is visible in the devtools console:

image

This is caused by the following line of code: https://github.com/MultiSafepay/Magento2Msp/blob/master/view/frontend/web/js/view/payment/method-renderer/connect-method.js#L41

Magento splitted jQuery UI into multiple files like jquery-ui-modules/core, jquery-ui-modules/widget, etc. See https://github.com/magento/magento2/blob/2.4-develop/lib/web/jquery/compat.js for the full list of modules.

When jquery/ui is requested as dependency, compat.js will now be loaded instead. This compatibility file loads all jquery-UI modules with separate requests, which hurts the performance of our checkout quite bad.

I'm not sure which jQuery UI modules you need for the connect-method.js file, so I decided to open an issue instead of a pull request. Could you please look into it? :)

vinodsowdagar commented 4 years ago

Hi @DerFrenk ,

Thank you for reporting this issue. The detailed explanation you provided will be of much help.

We will look into this as soon as possible and we will keep you updated while we are working on a solution.

vinodsowdagar commented 4 years ago

Hi @DerFrenk ,

We looked in to this and we could safely remove the jquery/ui dependency. This was an old remnant that is not being used anymore.

The change can be found in the following commit: 02b8dc3 We will give you an update when the change will be available in the next release.

DerFrenk commented 4 years ago

Nice, thanks! :)

vinodsowdagar commented 4 years ago

Hi @DerFrenk ,

We have released a new version of our extension which contains the fix you requested. more information can be found here:

https://github.com/MultiSafepay/Magento2Msp/releases/tag/1.10.0

We are closing this issue. If you still have questions or comments, feel free to start a new one.