gridaco / assistant

🤖 Bring your Figma design & development pipeline to the next level - with design to code, in-design-content-management, component management, tools for faster design
https://grida.co/assistant
Other
578 stars 47 forks source link

Optimize plugin window by droping React, adopting Svelte or Preact #152

Open softmarshmallow opened 3 years ago

softmarshmallow commented 3 years ago

Currently the production mode of the figma plugin is hosted on plugin window and the hosted plugin ui (Both React) But since the bootup time is critical, we can optimize this via using minimized version of framework (or even vanilla) just for hosting a plugin ui on plugin window.

I'm not sure how much booting time can be saved, but worth a try ;)

References

Resolutions

Current

https://user-images.githubusercontent.com/16307013/131169342-ed55d4f6-28af-44dc-a467-578e4452028b.mov

softmarshmallow commented 3 years ago

This is what happens when using vanilla js + html for the plugin host window.

https://user-images.githubusercontent.com/16307013/131209083-2ba99fac-ba1b-4837-a886-ad5e989ac360.mov

After plugin window shows up.