so-widgets-bundle icon indicating copy to clipboard operation
so-widgets-bundle copied to clipboard

Load scripts and styles dynamically if they're not available

Open gregpriday opened this issue 8 years ago • 0 comments

When SiteOrigin widgets are used outside places where we would have enqueued their scripts and styles, their forms just show up as a message telling the user to reload the page in order to load scripts and styles.

We could probably fix this by rather dynamically loading the scripts and styles using jQuery. This would eliminate the need for people to reload the page they're working on after they first install Widgets Bundle, and it should get our widgets working in a few other plugins.

gregpriday avatar Jun 13 '17 04:06 gregpriday