How can I speed up the load time of a Slate iframed in a Workshop?

I’m using a Slate in a Workshop application, as a widget via the iframe widget.

Whenever a user hide this widget, the component is unmounted, and each time the user shows the widget again, Slate loads from scratch.

Questions:

  • Is it possible to avoid Workshop unmounting the widget, so that we avoid the “full reload” ?
  • Is it possible to speed up/improve the Slate loading time as a widget in Workshop in some way ? Is there anything specific to look at first ?
2 Likes

Hey Vince,
Curious as to what kind of computer you use to build vs the computer used to run the software apps daily? Best practices and future of hardware for optimizing the platform?

Hey @VincentF ,

One potential solution would be to delegate the “hiding” logic to the slate app instead of the workshop widget. You could set up a variable that applies a class to the slate app that would hide it. This way the iframe will always be present, but the app will be empty when hidden.

Embedded slate app performance can also be improved if any variable data is provided via input parameters instead of URL parameters.

1 Like