openui5
openui5 copied to clipboard
refactor: Getting rid of jQuery in sap.f
sap.f is almost jQuery free now! I've removed most of its usage from the lib, the leftovers are mostly jQuery data and jQuery events.
Thanks a lot @mauriciolauffer. I've created an internal incident 2370149188. The responsible team will post any updates here.
This issue needs some further investigation by the team. Will be tackled in backlog item BGSOFUIPIRIN-6414.
Hello @mauriciolauffer ,
Thank you for the PR!
I investigated the topic thoroughly and discussed it with my team, my PO and some of our architects.
At this point, removing the jQuery library from the sap.f will not benefit us for a few reasons:
- Performance wise won't be any notable difference since the jQuery will still be used in sap.m and sap.ui.core (libs heavily used in all applications).
- Refactoring such a big chunk of code comes with the risk of backward incompatibilities. Especially for users with really old browsers (some of our customers) if we use the latest and greatest browsers APIs.
- The time spent for a topic which won't benefit us almost at all (more urgent topics at hand).
I too agree that jQuery is something old which we need to remove from our framework at some point. But this should happen as a part of a bigger more heavily discussed topic/epic where jQuery is removed from the whole framework. Also our users should be notified with some sort of note where eventual incompatibilities might be avoided.
At this point I can't give you a specific date when the removal of jQuery from the whole framework will be done, but stay tuned as I am sure this is going to be in the near future.
Regards, Plamen Ivanov