filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 41 forks source link

Is there a way to preload filestack? #42

Closed andreyvital closed 5 years ago

andreyvital commented 6 years ago

Hey guys, I'd like to preload filestack client before the user hits the button for picking a file. This improves our UX since there's a tiny delay between the client load and the actual picker UI render

velveteer commented 6 years ago

This would have to be an enhancement to the SDK (filestack-js), since the picker code is loaded at runtime over the network. We have had a similar request to provide the picker assets within the SDK for manual bundling, or to at least offer a separate SDK bundle with the picker code already included. We will be tracking this as an enhancement to filestack-js, and hopefully we can offer it as a fast-follow to the 1.0 release.

andreyvital commented 6 years ago

Thanks, @velveteer. That'd be great!

nidhi-ag commented 5 years ago

Is it possible now ?

AndrzejSala commented 5 years ago

@CentaurWarchief @nidhi-ag Hey guys, You should check out a new 2.0.2 release with newly added preload option. Now you can control if assets like scripts or styles should be injected at mount or rather on click event.