Title: Scripts not loading
Last modified: January 1, 2021

---

# Scripts not loading

 *  Resolved [eclev91](https://wordpress.org/support/users/eclev91/)
 * (@eclev91)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/scripts-not-loading-4/)
 * Hey there,
 * Currently when your widget is loaded in a context outside widgets.php or the 
   Customizer, the scripts required for the admin form don’t load. So, for example,
   if using Beaver Builder’s widget module, the form breaks and the widget can’t
   be used.
 * Rather than only load the scripts on certain screens, you might move the admin
   form’s script and style registration into the callback that renders the form.
   This would ensure that anytime the form is loaded, so are the scripts and styles.
   This would probably require moving these scripts/styles into the footer, but 
   I should imagine that’s fine.
 * If there’s a git repo, I’d happily add a pull request.
 * Also when you register/enqueue your scripts and styles, you only need to include
   paths when registering them. You’ve redundantly passed the paths when enqueueing,
   as well.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/scripts-not-loading-4/#post-13856882)
 * Hi [@eclev91](https://wordpress.org/support/users/eclev91/),
 * First of all, I would like to say thank you for an absolutely right issue.
 * Yes, you’re right, not everything is smooth there, but the problem only arises
   with a styles, everything else including the widget continues to work. We did
   it on purpose, even with broken styles.
 * Please see the screenshots below, you can add the widget and connect your Google
   Place ID and show the reviews on the page in Beaver Builder:
 * 1. Add the widget:
 * 2. Connect Google place:
 * 3. Save it on the page and show the reviews:
 * This should also work for you.
 * Your second note about the repo is also great. We think about it and now we will
   raise the priority of this task higher, since we receive many similar proposals
   for improving the plugin. The link to repo will be included in the plugin description.
 * Thank you for your help to improve the plugin! It’s really important for us and
   all clients!
 *  Thread Starter [eclev91](https://wordpress.org/support/users/eclev91/)
 * (@eclev91)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/scripts-not-loading-4/#post-13929468)
 * Hey there – I now see the interface you’ve outlined here. However, the reviews
   now [aren’t appearing in the widget](https://www.smcommercialclean.com/testimonials/)(
   still placed via Beaver Builder).
 * Looking at the debug information, it looks like there are reviews in the database.
   Not sure why they wouldn’t load into the widget.
 * happy to send over full debug info.
 *  Thread Starter [eclev91](https://wordpress.org/support/users/eclev91/)
 * (@eclev91)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/scripts-not-loading-4/#post-13930139)
 * Deleted all plugin data and started from scratch, working now. Oof.
 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/scripts-not-loading-4/#post-13930261)
 * Hi [@eclev91](https://wordpress.org/support/users/eclev91/),
 * Great! Thank you for inform us.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Scripts not loading’ is closed to new replies.

 * ![](https://ps.w.org/widget-google-reviews/assets/icon-256x256.gif?rev=3152314)
 * [Rich Showcase for Google Reviews](https://wordpress.org/plugins/widget-google-reviews/)
 * [Support Threads](https://wordpress.org/support/plugin/widget-google-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-google-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-google-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-google-reviews/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/scripts-not-loading-4/#post-13930261)
 * Status: resolved