Tomás Crespo García

Results 28 comments of Tomás Crespo García

As long as the library isn't included in the `package.json`, then it shouldn't be eagerly loaded. So, your solution loads the script from the CDN when the workflow page is...

Oh, now I see that you have added the `plotly-1.34.0.min.js` inside the component source directory, that seems strange to me. I guess this shouldn't be done if the script is...

> That was needed to have the class `Plotly` accessible in the script. Quite neat actually. Ok. Why not loading the dependency from `package.json` as the usual way?

Ok Paolo. But are you sure this solution achieves the lazy loading behavior that you want? Does it also work in the build form of the application?

:smile: I ask this because as far as I know, I think the default behavior of the `import` statements is to lazy load the JavaScript modules. In fact, some JS...

Ok, I'll leave this here as a future reference: https://github.com/plotly/angular-plotly.js/issues/50

Hi Paolo. I find [Bootstrap toasts](https://getbootstrap.com/docs/4.3/components/toasts/) a good fit for this. Are you ok with them?

I'll check if it's possible to show an alert as a toast. I'll try to do that in order to leverage the builtin mechanism to hide the toast automatically after...

The Bootstrap toasts have [options](https://getbootstrap.com/docs/4.3/components/toasts/#options) to specify the fading behavior. Don't worry I sense an alert can be integrated with a toast without many problems.

Yes, I know. I was thinking as you. In this case the toast would be like an invisible carrier for the alert.