Title: Js doesn&#8217;t loaded
Last modified: March 1, 2021

---

# Js doesn’t loaded

 *  Resolved [giangel84](https://wordpress.org/support/users/giangel84/)
 * (@giangel84)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/js-doesnt-loaded/)
 * With WP 5.6.x version all js files that depends on jQuery doesn’t get loaded.
 * That’s because in your plugin’s file you still check the previous jQuery slug.
   So since WP 5.6 load the dependency with the new ‘jquery-core’ slug you should
   dynamically edit this behavoiur like this way:
 *     ```
       global $wp_version;
       if ( version_compare( $wp_version, '5.6', '>=' ) ) {
       	$jquery_slug = array('jquery-core');
       } else {
       	$jquery_slug = array('jquery');
       }
   
       wp_enqueue_script( 'dtpicker', plugins_url( 'assets/js/vendor/datetimepicker/jquery.datetimepicker.full.min.js', dirname( __FILE__ ) ), $jquery_slug, $version, true );
       ```
   
 * Please fix this as you desire.
    Thanks.

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

 *  Plugin Author [inputwp](https://wordpress.org/support/users/inputwp/)
 * (@inputwp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/js-doesnt-loaded/#post-14117037)
 * Hello hardweb.it (would love to know your name)
 * Thank you for reporting this and also for the suggestion. We will include it 
   in the v1.9.1 release.
 *  Thread Starter [giangel84](https://wordpress.org/support/users/giangel84/)
 * (@giangel84)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/js-doesnt-loaded/#post-14117138)
 * Hello [@inputwp](https://wordpress.org/support/users/inputwp/) my name’s Gianluca.
   🙂
 * Thank you for the quick reply, I wish you all the best in your work.
 *  Plugin Author [inputwp](https://wordpress.org/support/users/inputwp/)
 * (@inputwp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/js-doesnt-loaded/#post-14117147)
 * Gianluca thank you very much!
 * Best regards,
    Cristian C.
 *  Thread Starter [giangel84](https://wordpress.org/support/users/giangel84/)
 * (@giangel84)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/js-doesnt-loaded/#post-14117251)
 * [@inputwp](https://wordpress.org/support/users/inputwp/) your welcome! 😉

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

The topic ‘Js doesn’t loaded’ is closed to new replies.

 * ![](https://ps.w.org/date-time-picker-field/assets/icon.svg?rev=2964043)
 * [Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP](https://wordpress.org/plugins/date-time-picker-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/date-time-picker-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/date-time-picker-field/)
 * [Active Topics](https://wordpress.org/support/plugin/date-time-picker-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/date-time-picker-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/date-time-picker-field/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [giangel84](https://wordpress.org/support/users/giangel84/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/js-doesnt-loaded/#post-14117251)
 * Status: resolved