Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi,
The structure of my custom widget is shown below, Now a widget referencing a third-party widget is possible, but if I need to develop 10 widgets, I need to put 10 of the same third-party JS, so the size will become larger and may affect performance.
if it is possible to put only one third-party JS in the widget package, and the other widgets can refer to the JS?
Thank you!
Chason
Solved! Go to Solution.
Hi @CZ_9645217.
You could load the third party library into the platform, where it would be available for all widgets. Here is an example from our IoT Tech Tips forum.
It may also be possible to set dependencies to ensure the library is loaded to avoid having to load it with each widget.
Regards.
--Sharon
Hi @CZ_9645217.
You could load the third party library into the platform, where it would be available for all widgets. Here is an example from our IoT Tech Tips forum.
It may also be possible to set dependencies to ensure the library is loaded to avoid having to load it with each widget.
Regards.
--Sharon
Hi @CZ_9645217.
If you feel your question was answered, please mark the previous response as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon