so-widgets-bundle
so-widgets-bundle copied to clipboard
Load scripts and styles dynamically if they're not available
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.