appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.77k stars 3.63k forks source link

[Feature]: Custom Widget import from app installed libraries #35735

Open jusitnl994 opened 3 weeks ago

jusitnl994 commented 3 weeks ago

Is there an existing issue for this?

Summary

custom widget Java Script library import from local installed JavaScript libraries within an app as an alternative or to be used with parallel with the URL import

Why should this be worked on?

For users that have a lot of custom widgets performing many CDN imports for libraries can cause network error in being rejected due to too many request by using the installed library within the settings of your app within your custom widget. This will reduce network load, and the library is already installed, therefore reducing redundant libraries being loaded, this improvement could probably help with application size and how much ram needs since we are reusing the same library code.

in my case, I have a custom widget I made that will be using our react app later on in this custom widget is a form field and we use at least 10 of them on one page each custom widget has three URL imports therefore at minimum there’s 30 request going on simultaneously on Pelo after about 10 request we start getting network error. I’ve had incorporate other mechanisms within each widget to delay the request in the page so that we don’t get errors, but it still workaround and our app becomes slow when we Install JavaScript library in settings of app there is no way to import that in custom widget.

Nikhil-Nandagopal commented 3 weeks ago

@jusitnl994 could you tell us how many custom widgets you have on a page and how come you need this many? Each custom widget runs in it's own iFrame so I don't think it's possible to share the library imports unfortunately