Title: Better file loading
Last modified: November 16, 2016

---

# Better file loading

 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/better-file-loading/)
 * Sometimes I need to load the plugin from the mu-plugins directory. This is the
   way to allow for both locations:
 *     ```
       function sc_bpc_scripts(){
         wp_register_script('sc-bpc-js', plugins_url( 'my-script.js', __FILE__), array('jquery'));
         wp_enqueue_script('sc-bpc-js');
       }
       function sc_bpc_styles(){
         wp_register_style('sc-bpc-css',plugins_url('my-style.css', __FILE__));
         wp_enqueue_style('sc-bpc-css');
       }
       ```
   
    -  This topic was modified 9 years, 6 months ago by [Kevin Batdorf](https://wordpress.org/support/users/kbat82/).

The topic ‘Better file loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bulk-page-creator.svg)
 * [Bulk Page Creator](https://wordpress.org/plugins/bulk-page-creator/)
 * [Support Threads](https://wordpress.org/support/plugin/bulk-page-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/bulk-page-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulk-page-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulk-page-creator/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/better-file-loading/)
 * Status: not resolved