Open bassettsj opened 6 years ago
Been discussing this recently with @matteofigus and I'm totally onboard with this. There is a ton of potential in the oc-client browser, decoupling some of its deps is definitely a good place to start.
Sounds great, to me. I will see if I can at least get some idea of the internals by looking at adding a unit test or something smaller.
Totally! A couple of considerations:
Thoughts?
oc.$
... FT
team and found that interesting. The registry could potentially, dynamically serve the bundle, perhaps could be an interesting path to investigate further? -> https://polyfill.io/v2/docs/On API compatibility: Agreed I think we would need to maintain decent unit / integration tests for that. I think that would be a requirement or there would have to be just another browser client entirely. I think we could deal with the oc.$
by just making that still jQuery if it is available on the window or something.
Polyfilling: I really like the approach the stencil team is using for automatically feature detecting and loading only on demand. It might be a lot better to do feature detection over the FT approach of user agent sniffing.
Further discussions might be to invest some in modernizing build / tests as well if we are going to invest in the core.
How is this going? Could lend a hand
Why? The overhead of loading all of jquery is not necessary for the oc-client-browser. Many of the same things can be done using the built in platform and polyfilling for legacy support. I would like to think about how we start to modernize the oc-client-browser to be jquery free and as small and light as possible.