Title: Scripts &amp; Styles delay in loading
Last modified: August 31, 2016

---

# Scripts & Styles delay in loading

 *  Resolved [Mansi Shah](https://wordpress.org/support/users/daredevil22/)
 * (@daredevil22)
 * [10 years ago](https://wordpress.org/support/topic/scripts-styles-delay-in-loading/)
 * Hi,
 * Using v1.1.2 & in your changelog
 * > register stylesheet and JS and call only on KBE pages & only eneque and load
   > search inline script if search is enabled
 * For **style ‘kbe_theme_style’** & **script ‘kbe_live_search’**, plugin has just
   enqueued styles & scripts without checking if the style is registered. This is
   causing a slight delay of loading CSS on KB pages which is looking bad on my 
   site.
 * To fix that, I need to manually edit all the plugin files & it is time consuming.
   
   Can you please make sure to include it in your upcoming release ASAP??
 * [https://wordpress.org/plugins/wp-knowledgebase/](https://wordpress.org/plugins/wp-knowledgebase/)

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

 *  [jonathan1996](https://wordpress.org/support/users/jonathan1996/)
 * (@jonathan1996)
 * [10 years ago](https://wordpress.org/support/topic/scripts-styles-delay-in-loading/#post-7268480)
 * Change the function kbe_styles() in wp-content\plugins\wp-knowledgebase\wp-knowledgebase.
   php to:
 * function kbe_styles(){
    if( file_exists( get_stylesheet_directory() . ‘/wp_knowledgebase/
   kbe_style.css’ ) ){ $stylesheet = get_stylesheet_directory_uri() . ‘/wp_knowledgebase/
   kbe_style.css’; } else { $stylesheet = WP_KNOWLEDGEBASE. ‘template/kbe_style.
   css’; } wp_register_style(‘know-style’, $stylesheet); wp_enqueue_style(‘know-
   style’); } add_action(‘wp_enqueue_scripts’, ‘kbe_styles’);
 *  Thread Starter [Mansi Shah](https://wordpress.org/support/users/daredevil22/)
 * (@daredevil22)
 * [10 years ago](https://wordpress.org/support/topic/scripts-styles-delay-in-loading/#post-7268551)
 * Thanks [@jonathan1996](https://wordpress.org/support/users/jonathan1996/) 🙂
 * But I really look forward to developer fix this problem in next release.
 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [10 years ago](https://wordpress.org/support/topic/scripts-styles-delay-in-loading/#post-7268581)
 * Sorry about this. Fixed in 1.1.4. Thanks guys.
 *  Thread Starter [Mansi Shah](https://wordpress.org/support/users/daredevil22/)
 * (@daredevil22)
 * [10 years ago](https://wordpress.org/support/topic/scripts-styles-delay-in-loading/#post-7268590)
 * Thank you for the fix 🙂

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

The topic ‘Scripts & Styles delay in loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-knowledgebase_c56559.svg)
 * [WordPress Knowledge base & Documentation Plugin - WP Knowledgebase](https://wordpress.org/plugins/wp-knowledgebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-knowledgebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-knowledgebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-knowledgebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-knowledgebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-knowledgebase/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [KB](https://wordpress.org/support/topic-tag/kb/)
 * [register](https://wordpress.org/support/topic-tag/register/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mansi Shah](https://wordpress.org/support/users/daredevil22/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/scripts-styles-delay-in-loading/#post-7268590)
 * Status: resolved