Title: Admin scripts on frontend
Last modified: January 22, 2018

---

# Admin scripts on frontend

 *  Resolved [gresakg](https://wordpress.org/support/users/gresakg/)
 * (@gresakg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/admin-scripts-on-frontend/)
 * I have noticed that the plugin loads a lot of scripts, namely many wordpress 
   scripts intended to be used for admin panel only. Among others are
    thickbox.
   min.js, shortcode.min.js, media-upload.min.js, backbone.min.js, plupload, sortable.
   min.js
 * I am sure all this scripts are not needed on the frontend unless something shady
   is going on. On the other hand, the customizer might need them. You should check
   of you are in theme customizer context before loading these scripts.
 * Please update this as it is a performance and possibly a security issue.

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

 *  Plugin Author [Organic Themes](https://wordpress.org/support/users/organicthemes/)
 * (@organicthemes)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/admin-scripts-on-frontend/#post-9891424)
 * Hi [@gresakg](https://wordpress.org/support/users/gresakg/),
 * Thanks for spotting this bug. That was a tricky issue to track down. However,
   it appears those scripts were being loaded by some of the widgets that had some
   unnecessary ‘media-upload’ and ‘media-views’ dependencies while enqueuing other
   necessary scripts.
 * Anyway, I’ll be pushing a fix with the next plugin update that will resolve this
   issue.
 * Thanks!
 * David
 *  Plugin Author [Organic Themes](https://wordpress.org/support/users/organicthemes/)
 * (@organicthemes)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/admin-scripts-on-frontend/#post-9891618)
 * Hi [@gresakg](https://wordpress.org/support/users/gresakg/),
 * I pushed an update to the plugin to resolve the issue. I’m going to mark this
   issue as resolved.
 * Thanks!
 *  Thread Starter [gresakg](https://wordpress.org/support/users/gresakg/)
 * (@gresakg)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/admin-scripts-on-frontend/#post-9966610)
 * Thanks a lot to you!

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

The topic ‘Admin scripts on frontend’ is closed to new replies.

 * ![](https://ps.w.org/organic-customizer-widgets/assets/icon-256x256.png?rev=2057750)
 * [Organic Builder Widgets - Simple WordPress Page Builder](https://wordpress.org/plugins/organic-customizer-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/organic-customizer-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/organic-customizer-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/organic-customizer-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/organic-customizer-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/organic-customizer-widgets/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 3 replies
 * 2 participants
 * Last reply from: [gresakg](https://wordpress.org/support/users/gresakg/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/admin-scripts-on-frontend/#post-9966610)
 * Status: resolved