Title: jQuery dependency needed?
Last modified: February 14, 2025

---

# jQuery dependency needed?

 *  Resolved [bheching](https://wordpress.org/support/users/bheching/)
 * (@bheching)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/jquery-dependency-needed/)
 * Hi there,
 * While trying to remove jQuery on the front-end, I noticed that full-screen-mobile-
   menu.min.js (oceanwp-full-screen-mobile-menu) depends on jQuery, which complicates
   things a bit. I’m not an expert, but it seems to me this dependency is not necessary(
   any more).
 * Would be awesome, if you could have a look and remove it if not needed. Thanks!

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

 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/jquery-dependency-needed/#post-18309946)
 * Hello [@bheching](https://wordpress.org/support/users/bheching/),
 * Thank you for reaching out,
 * Please provide a live URL of the issue so we can investigate further.
 * Currently, after several major updates, we no longer require jQuery and are fully
   utilizing vanilla JS in OceanWP.
 * Please recheck your issue and keep us posted.
 * Best Regards
 *  Thread Starter [bheching](https://wordpress.org/support/users/bheching/)
 * (@bheching)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/jquery-dependency-needed/#post-18310582)
 * Hi Shahin,
 * thank you for getting back to me. Let me elaborate a bit. Functions.php of OceanWP
   4.0.5 contains following lines:
 *     ```wp-block-code
       $main_script_dependencies = array( 'jquery' ); (line 517)...wp_enqueue_script( 'oceanwp-full-screen-mobile-menu', $dir . 'full-screen-mobile-menu.min.js', $main_script_dependencies, $theme_version, true ); (line 583)
       ```
   
 * I wonder why jQuery is set as a dependency for any of your scripts, if you are
   fully utilizing vanilla JS.
 * I’m probably just missing something but I thought i’d ask, since I ran into problems
   unloading jQuery while keeping the “child” scripts loaded using Asset CleanUp
   in combination with Wp-Optimize’s Minification Feature. (a bit tricky to explain)
 * Best regards and have a great day!
 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/jquery-dependency-needed/#post-18317547)
 * Hello [@bheching](https://wordpress.org/support/users/bheching/),
 * Thank you for reaching out and thank you for your patience.
 * We appreciate your feedback regarding the jQuery dependency in oceanwp-full-screen-
   mobile-menu. After reviewing the script, we’ve determined that jQuery is not 
   necessary for this specific file. We will remove its dependency in an upcoming
   update(s) to ensure a more streamlined experience.
 * However, please note that some other parts of the theme still rely on jQuery(
   the jQuery in WordPress core itself), so it cannot be removed entirely at the
   theme level.
 * I hope it helps,
    Best Regards
 *  Thread Starter [bheching](https://wordpress.org/support/users/bheching/)
 * (@bheching)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/jquery-dependency-needed/#post-18318513)
 * Thank you, Shahin and team. Very much appreciated!

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

The topic ‘jQuery dependency needed?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.6/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bheching](https://wordpress.org/support/users/bheching/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/jquery-dependency-needed/#post-18318513)
 * Status: resolved